Execute some Go one-liners.
Trivial helloworld:
$ goliner 'println("hello world!")'
hello world!
More sophisticated example with modules usage:
$ goliner 'fmt.Println(strings.Join([]string{"foo", "bar"}, ", "))'
foo, bar
You can explicitly specify imports:
$ goliner -i fmt -i strings 'fmt.Println(strings.Join([]string{"foo", "bar"}, ", "))'
foo, bar