There is also yaegi, a Go interpreter, which might be a better choice for small scripts than 'go run'.
https://github.com/traefik/yaegi
Also, for Go oneliners: https://github.com/dolmen-go/goeval
(Disclaimer: author here)
Also, for Go oneliners: https://github.com/dolmen-go/goeval
(Disclaimer: author here)