OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.19.4
/
src
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/16/2023 01:02:19 PM
rwxr-xr-x
📄
Make.dist
553 bytes
12/01/2022 06:12:53 PM
rw-r--r--
📄
README.vendor
2.24 KB
12/01/2022 06:12:53 PM
rw-r--r--
📄
all.bash
407 bytes
12/01/2022 06:12:53 PM
rwxr-xr-x
📄
all.bat
758 bytes
12/01/2022 06:12:53 PM
rw-r--r--
📄
all.rc
388 bytes
12/01/2022 06:12:53 PM
rwxr-xr-x
📁
archive
-
12/01/2022 06:13:55 PM
rwxr-xr-x
📄
bootstrap.bash
3.69 KB
12/01/2022 06:12:53 PM
rwxr-xr-x
📁
bufio
-
12/01/2022 06:13:55 PM
rwxr-xr-x
📄
buildall.bash
1.83 KB
12/01/2022 06:12:53 PM
rwxr-xr-x
📁
builtin
-
12/01/2022 06:13:55 PM
rwxr-xr-x
📁
bytes
-
12/01/2022 06:13:55 PM
rwxr-xr-x
📄
clean.bash
518 bytes
12/01/2022 06:12:53 PM
rwxr-xr-x
📄
clean.bat
600 bytes
12/01/2022 06:12:53 PM
rw-r--r--
📄
clean.rc
380 bytes
12/01/2022 06:12:53 PM
rwxr-xr-x
📁
cmd
-
12/01/2022 06:13:55 PM
rwxr-xr-x
📄
cmp.bash
1.48 KB
12/01/2022 06:12:56 PM
rw-r--r--
📁
compress
-
12/01/2022 06:13:55 PM
rwxr-xr-x
📁
container
-
12/01/2022 06:13:55 PM
rwxr-xr-x
📁
context
-
12/01/2022 06:13:55 PM
rwxr-xr-x
📁
crypto
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
database
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
debug
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
embed
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
encoding
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
errors
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
expvar
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
flag
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
fmt
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
go
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
go.mod
288 bytes
12/01/2022 06:12:58 PM
rw-r--r--
📄
go.sum
840 bytes
12/01/2022 06:12:58 PM
rw-r--r--
📁
hash
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
html
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
image
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
index
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
internal
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
io
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
log
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
make.bash
7.77 KB
12/01/2022 06:12:59 PM
rwxr-xr-x
📄
make.bat
4.8 KB
12/01/2022 06:12:59 PM
rw-r--r--
📄
make.rc
3.38 KB
12/01/2022 06:12:59 PM
rwxr-xr-x
📁
math
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
mime
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
net
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
os
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
path
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
plugin
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
race.bash
919 bytes
12/01/2022 06:12:59 PM
rwxr-xr-x
📄
race.bat
1.07 KB
12/01/2022 06:12:59 PM
rw-r--r--
📁
reflect
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
regexp
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
run.bash
1.75 KB
12/01/2022 06:12:59 PM
rwxr-xr-x
📄
run.bat
844 bytes
12/01/2022 06:12:59 PM
rw-r--r--
📄
run.rc
396 bytes
12/01/2022 06:12:59 PM
rwxr-xr-x
📁
runtime
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
sort
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
strconv
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
strings
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
sync
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
syscall
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
testdata
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
testing
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
text
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
time
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
unicode
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
unsafe
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📁
vendor
-
12/01/2022 06:13:56 PM
rwxr-xr-x
Editing: bootstrap.bash
Close
#!/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. # When run as (for example) # # GOOS=linux GOARCH=ppc64 bootstrap.bash # # this script cross-compiles a toolchain for that GOOS/GOARCH # combination, leaving the resulting tree in ../../go-${GOOS}-${GOARCH}-bootstrap. # That tree can be copied to a machine of the given target type # and used as $GOROOT_BOOTSTRAP to bootstrap a local build. # # Only changes that have been committed to Git (at least locally, # not necessary reviewed and submitted to master) are included in the tree. # # As a special case for Go's internal use only, if the # BOOTSTRAP_FORMAT environment variable is set to "mintgz", the # resulting archive is intended for use by the Go build system and # differs in that the mintgz file: # * is a tar.gz file instead of bz2 # * has many unnecessary files deleted to reduce its size # * does not have a shared directory component for each tar entry # Do not depend on the mintgz format. set -e if [ "$GOOS" = "" -o "$GOARCH" = "" ]; then echo "usage: GOOS=os GOARCH=arch ./bootstrap.bash" >&2 exit 2 fi targ="../../go-${GOOS}-${GOARCH}-bootstrap" if [ -e $targ ]; then echo "$targ already exists; remove before continuing" exit 2 fi if [ "$BOOTSTRAP_FORMAT" != "mintgz" -a "$BOOTSTRAP_FORMAT" != "" ]; then echo "unknown BOOTSTRAP_FORMAT format" exit 2 fi unset GOROOT src=$(cd .. && pwd) echo "#### Copying to $targ" cp -Rp "$src" "$targ" cd "$targ" echo echo "#### Cleaning $targ" chmod -R +w . rm -f .gitignore if [ -e .git ]; then git clean -f -d fi echo echo "#### Building $targ" echo cd src ./make.bash --no-banner gohostos="$(../bin/go env GOHOSTOS)" gohostarch="$(../bin/go env GOHOSTARCH)" goos="$(../bin/go env GOOS)" goarch="$(../bin/go env GOARCH)" # NOTE: Cannot invoke go command after this point. # We're about to delete all but the cross-compiled binaries. cd .. if [ "$goos" = "$gohostos" -a "$goarch" = "$gohostarch" ]; then # cross-compile for local system. nothing to copy. # useful if you've bootstrapped yourself but want to # prepare a clean toolchain for others. true else rm -f bin/go_${goos}_${goarch}_exec mv bin/*_*/* bin rmdir bin/*_* rm -rf "pkg/${gohostos}_${gohostarch}" "pkg/tool/${gohostos}_${gohostarch}" fi if [ "$BOOTSTRAP_FORMAT" = "mintgz" ]; then # Fetch git revision before rm -rf .git. GITREV=$(git rev-parse --short HEAD) fi rm -rf pkg/bootstrap pkg/obj .git # Support for building minimal tar.gz for the builders. # The build system doesn't support bzip2, and by deleting more stuff, # they start faster, especially on machines without fast filesystems # and things like tmpfs configures. # Do not depend on this format. It's for internal use only. if [ "$BOOTSTRAP_FORMAT" = "mintgz" ]; then OUTGZ="gobootstrap-${GOOS}-${GOARCH}-${GITREV}.tar.gz" echo "Preparing to generate build system's ${OUTGZ}; cleaning ..." rm -rf bin/gofmt rm -rf src/runtime/race/race_*.syso rm -rf api test doc misc/cgo/test rm -rf pkg/tool/*_*/{addr2line,api,cgo,cover,doc,fix,nm,objdump,pack,pprof,test2json,trace,vet} rm -rf pkg/*_*/{image,database,cmd} rm -rf $(find . -type d -name testdata) find . -type f -name '*_test.go' -exec rm {} \; # git clean doesn't clean symlinks apparently, and the buildlet # rejects them, so: find . -type l -exec rm {} \; echo "Writing ${OUTGZ} ..." tar cf - . | gzip -9 > ../$OUTGZ cd .. ls -l "$(pwd)/$OUTGZ" exit 0 fi echo ---- echo Bootstrap toolchain for "$GOOS/$GOARCH" installed in "$(pwd)". echo Building tbz. cd .. tar cf - "go-${GOOS}-${GOARCH}-bootstrap" | bzip2 -9 >"go-${GOOS}-${GOARCH}-bootstrap.tbz" ls -l "$(pwd)/go-${GOOS}-${GOARCH}-bootstrap.tbz" exit 0