一个用于执行 Go 函数的命令行工具。
goexec is a command line tool to execute Go code. Output is printed as goons to stdout.
go install github.com/shurcooL/goexec@latestUsage: goexec [flags] [packages] [package.]function(parameters)
echo parameters | goexec -stdin [flags] [packages] [package.]function
-compiler string
Compiler to use, one of: "gc", "gopherjs". (default "gc")
-n Print the generated source but do not run it.
-quiet
Do not dump the return values as a goon.
-stdin
Read func parameters from stdin instead.
-tags string
A comma-separated list of build tags to consider satisfied during the build.…暂无开放 Issues,或尚未同步最近议题。