Go lang is fast to compile and can be used as a script by go run prog.go. However, a REPL is more convenient for testing/trying some small pieces of code. Any good Go REPL implementation / tool?
go run prog.go
Try gore https://github.com/motemen/gore
$ go get -u github.com/motemen/gore
gore version 0.2.6 :help for help
gore> :import fmt
gore> fmt.Println("hello world!")