Skip to content

bir3/gorun

Repository files navigation

gorun

Run Go snippets without installing the Go toolchain.

Example

#! /usr/bin/env gorun

package main

import "fmt"

func main() {
   fmt.Println("standalone go code - no toolchain to install")
}

Install

Download ready executables for linux or mac under Releases

Install from source

go install github.com/bir3/gorun/cmd/gorun@latest

The executable is normally found in $HOME/go/bin - else see go install documentation

Features

  • Runs without installing the Go toolchain as it's already embedded in the executable.
  • Resulting executables are cached for fast startup.
  • Size of gorun is 47 MB and just one file

About

Run Go snippets without installing the Go toolchain

Resources

License

Stars

Watchers

Forks

Packages

No packages published