pkg(go-1.22.5): Updated go 1.22.5

This commit is contained in:
Apteryx 2024-07-05 04:43:33 +12:00
parent 59338eee33
commit 978791daca
5 changed files with 26 additions and 0 deletions

5
packages/go/1.22.5/build.sh vendored Normal file
View File

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

2
packages/go/1.22.5/environment vendored Normal file
View File

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

5
packages/go/1.22.5/metadata.json vendored Normal file
View File

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

7
packages/go/1.22.5/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.22.5/test.go vendored Normal file
View File

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