/minigo

A mini golang interpreter

Primary LanguageGoMIT LicenseMIT

minigo Actions Status Codecov GoDoc go-report

A mini golang interpreter based on yaegi-template and yaegi.

Usage

#!/usr/bin/env minigo
println("Hello World")

Note that minigo comes with a go runtime, you don't have to install go!

Use docker!

#!/usr/bin/env -S docker run -ti -v ${PWD}:/app/ -w /app --rm eunts/minigo:latest
println("Hello World")

Installation

Download and install from the Relases Page. Or compile it yourself using go

Importing

You can import other packages by specifying $GOPATH and placing them in $GOPATH/src.
However yaegi is (currently) limited in functionality so don't expect all packages are working.