OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.19.4
/
src
/
go
/
build
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
build.go
60.65 KB
12/01/2022 06:12:58 PM
rw-r--r--
📄
build_test.go
22.62 KB
12/01/2022 06:12:58 PM
rw-r--r--
📁
constraint
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
deps_test.go
19.79 KB
12/01/2022 06:12:58 PM
rw-r--r--
📄
doc.go
3.7 KB
12/01/2022 06:12:58 PM
rw-r--r--
📄
gc.go
396 bytes
12/01/2022 06:12:58 PM
rw-r--r--
📄
gccgo.go
344 bytes
12/01/2022 06:12:58 PM
rw-r--r--
📄
read.go
12.6 KB
12/01/2022 06:12:58 PM
rw-r--r--
📄
read_test.go
6.04 KB
12/01/2022 06:12:58 PM
rw-r--r--
📄
syslist.go
2.04 KB
12/01/2022 06:12:58 PM
rw-r--r--
📄
syslist_test.go
1.38 KB
12/01/2022 06:12:58 PM
rw-r--r--
📁
testdata
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
zcgo.go
1.04 KB
12/01/2022 06:14:15 PM
rw-r--r--
Editing: syslist_test.go
Close
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package build import ( "runtime" "testing" ) var ( thisOS = runtime.GOOS thisArch = runtime.GOARCH otherOS = anotherOS() otherArch = anotherArch() ) func anotherOS() string { if thisOS != "darwin" && thisOS != "ios" { return "darwin" } return "linux" } func anotherArch() string { if thisArch != "amd64" { return "amd64" } return "386" } type GoodFileTest struct { name string result bool } var tests = []GoodFileTest{ {"file.go", true}, {"file.c", true}, {"file_foo.go", true}, {"file_" + thisArch + ".go", true}, {"file_" + otherArch + ".go", false}, {"file_" + thisOS + ".go", true}, {"file_" + otherOS + ".go", false}, {"file_" + thisOS + "_" + thisArch + ".go", true}, {"file_" + otherOS + "_" + thisArch + ".go", false}, {"file_" + thisOS + "_" + otherArch + ".go", false}, {"file_" + otherOS + "_" + otherArch + ".go", false}, {"file_foo_" + thisArch + ".go", true}, {"file_foo_" + otherArch + ".go", false}, {"file_" + thisOS + ".c", true}, {"file_" + otherOS + ".c", false}, } func TestGoodOSArch(t *testing.T) { for _, test := range tests { if Default.goodOSArchFile(test.name, make(map[string]bool)) != test.result { t.Fatalf("goodOSArchFile(%q) != %v", test.name, test.result) } } }