add go 1.22.2 pkg
This commit is contained in:
parent
c4cf018be2
commit
42d5e3e32f
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
curl -LO https://go.dev/dl/go1.22.2.linux-amd64.tar.gz
|
||||
tar -xzf go1.22.2.linux-amd64.tar.gz
|
||||
rm go1.22.2.linux-amd64.tar.gz
|
|
@ -0,0 +1,2 @@
|
|||
export PATH=$PWD/go/bin:$PATH
|
||||
export GOPATH=$PWD/gopath
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "go",
|
||||
"version": "1.22.2",
|
||||
"aliases": ["go", "golang"]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
mv $1 $1.go
|
||||
filename=*.go
|
||||
shift
|
||||
GOCACHE=$PWD go run $filename "$@"
|
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("OK")
|
||||
}
|
Loading…
Reference in New Issue