add piston nix pkg for go

This commit is contained in:
Dan Vargas 2022-02-16 09:10:46 -07:00
parent 226eca1fb9
commit bc2036486c
7 changed files with 39 additions and 26 deletions

View file

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

View file

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

View file

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

View file

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

View file

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