X7ROOT File Manager
Current Path:
/opt/golang/1.17.2/src
opt
/
golang
/
1.17.2
/
src
/
📁
..
📄
Make.dist
(553 B)
📄
README.vendor
(2.24 KB)
📄
all.bash
(407 B)
📄
all.bat
(754 B)
📄
all.rc
(388 B)
📁
archive
📄
bootstrap.bash
(3.7 KB)
📁
bufio
📄
buildall.bash
(1.83 KB)
📁
builtin
📁
bytes
📄
clean.bash
(518 B)
📄
clean.bat
(598 B)
📄
clean.rc
(380 B)
📁
cmd
📄
cmp.bash
(1.48 KB)
📁
compress
📁
container
📁
context
📁
crypto
📁
database
📁
debug
📁
embed
📁
encoding
📁
errors
📁
expvar
📁
flag
📁
fmt
📁
go
📄
go.mod
(288 B)
📄
go.sum
(1.5 KB)
📁
hash
📁
html
📁
image
📁
index
📁
internal
📁
io
📁
log
📄
make.bash
(6.97 KB)
📄
make.bat
(4.56 KB)
📄
make.rc
(3.04 KB)
📁
math
📁
mime
📁
net
📁
os
📁
path
📁
plugin
📄
race.bash
(1.08 KB)
📄
race.bat
(1.07 KB)
📁
reflect
📁
regexp
📄
run.bash
(1.81 KB)
📄
run.bat
(1.01 KB)
📄
run.rc
(436 B)
📁
runtime
📁
sort
📁
strconv
📁
strings
📁
sync
📁
syscall
📁
testdata
📁
testing
📁
text
📁
time
📁
unicode
📁
unsafe
📁
vendor
Editing: buildall.bash
#!/usr/bin/env bash # Copyright 2015 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. # Usage: buildall.bash [-e] [pattern] # # buildall.bash builds the standard library for all Go-supported # architectures. It is used by the "misc-compile" trybot builders, # as a smoke test to quickly flag portability issues. # # Options: # -e: stop at first failure if [ ! -f run.bash ]; then echo 'buildall.bash must be run from $GOROOT/src' 1>&2 exit 1 fi sete=false if [ "$1" = "-e" ]; then sete=true shift fi if [ "$sete" = true ]; then set -e fi pattern="$1" if [ "$pattern" = "" ]; then pattern=. fi ./make.bash || exit 1 GOROOT="$(cd .. && pwd)" gettargets() { ../bin/go tool dist list | sed -e 's|/|-|' echo linux-arm-arm5 } selectedtargets() { gettargets | egrep "$pattern" } # put linux first in the target list to get all the architectures up front. linux_targets() { selectedtargets | grep 'linux' | sort } non_linux_targets() { selectedtargets | grep -v 'linux' | sort } # Note words in $targets are separated by both newlines and spaces. targets="$(linux_targets) $(non_linux_targets)" failed=false for target in $targets do echo "" echo "### Building $target" export GOOS=$(echo $target | sed 's/-.*//') export GOARCH=$(echo $target | sed 's/.*-//') unset GOARM if [ "$GOARCH" = "arm5" ]; then export GOARCH=arm export GOARM=5 fi # Build and vet everything. # cmd/go/internal/work/exec.go enables the same vet flags during go test of std cmd # and should be kept in sync with any vet flag changes here. if ! "$GOROOT/bin/go" build std cmd || ! "$GOROOT/bin/go" vet -unsafeptr=false std cmd; then failed=true if $sete; then exit 1 fi fi done if [ "$failed" = "true" ]; then echo "" 1>&2 echo "Build(s) failed." 1>&2 exit 1 fi
Upload File
Create Folder