gommand

command module
v0.0.0-...-1c54ee6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 7 Imported by: 0

README

gommand

Go one liner program similar to python -c

How can I get it?

go install github.com/sno6/gommand@latest

Examples

Write any Go code in a single line context, gommand will handle your imports and main function for you.

gommand 'fmt.Println("Hello gommand")'

You could also quickly serve your current directory in one line.

gommand 'http.Handle("/", http.FileServer(http.Dir("."))); fmt.Println(http.ListenAndServe(":8080", nil))'

Quickly find the date.

gommand 'fmt.Println(time.Now())'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL