Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 410 Bytes

README.md

File metadata and controls

26 lines (14 loc) · 410 Bytes

goliner

Execute some Go one-liners.

Examples

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