2 ms·
This is not a tip. It comes straight from go help run "usage: go run [build flags] [-exec xprog] package [arguments...] Run compiles and runs the named m
by 1vuio0pswjnm7 3y ago
This is not a tip. It comes straight from
go help run
"usage: go run [build flags] [-exec xprog] package [arguments...]
Run compiles and runs the named main Go package.
Typically the package is specified as a list of .go source files from a single
directory, but it may also be an import path, file system path, or pattern
matching a single known package, as in 'go run .' or 'go run my/cmd'."
Nothing is said about go run main.go.