Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-run

go-run is tool that running go source code from stdin or arg.

Installation

$ git clone https://github.com/skanehira/go-run
$ go install

Usage

$ go-run -h
Usage of go-run:
  -c string
        source code
  -debug
        print debug log

# run code use -c
$ go-run -c '
package main
func main() {
println("hello gorilla")
}'
hello gorilla

# run code use pipeline
echo 'package main
func main() {
println("hello gorilla")
}
' | go-run
hello gorilla

Also, you can run code from vim buffer.

:w !go-run

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages