Skip to content

avoronkov/goliner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Run one-liners written in Go

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages