Run Go snippets without installing the Go toolchain.
#! /usr/bin/env gorun
package main
import "fmt"
func main() {
fmt.Println("standalone go code - no toolchain to install")
}Download ready executables for linux or mac under Releases
go install github.com/bir3/gorun/cmd/gorun@latest
The executable is normally found in $HOME/go/bin - else see go install documentation
- Runs without installing the Go toolchain as it's already embedded in the executable.
- Resulting executables are cached for fast startup.
- Size of
gorunis 47 MB and just one file