Updated to go 1.20.3

This commit is contained in:
RVG|lory 2023-04-06 19:35:28 +02:00 committed by GitHub
parent 2d82118fff
commit 61ea368f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 0 deletions

4
packages/go/1.16.2/1.20.3/build.sh vendored Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
curl -LO https://golang.org/dl/go1.20.3.linux-amd64.tar.gz
tar -xzf go1.20.3.linux-amd64.tar.gz
rm go1.20.3.linux-amd64.tar.gz

6
packages/go/1.16.2/1.20.3/compile vendored Normal file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std
# Rust compiler needs to find the stdlib to link against
rustc -o binary -L ${RUST_INSTALL_LOC}/rustc/lib -L ${RUST_INSTALL_LOC}/rust-std-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib "$@"
chmod +x binary

2
packages/go/1.16.2/1.20.3/environment vendored Normal file
View file

@ -0,0 +1,2 @@
export PATH=$PWD/go/bin:$PATH
export GOPATH=$PWD/gopath

View file

@ -0,0 +1,5 @@
{
"language": "go",
"version": "1.20.3",
"aliases": ["go", "golang"]
}

7
packages/go/1.16.2/1.20.3/run vendored Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
mv $1 $1.go
#filename=$1.go
filename=*.go
shift
GOCACHE=$PWD go run $filename "$@"

7
packages/go/1.16.2/1.20.3/test.go vendored Normal file
View file

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("OK")
}