3 ms·
I put together a go "sh-bang" line so you can just chmod +x your .go file and run it (and it works with go fmt unlike other options). /*usr/bin/env go run
by fsmv 3y ago
I put together a go "sh-bang" line so you can just chmod +x your .go file and run it (and it works with go fmt unlike other options).
/*usr/bin/env go run "$0" "$@"; exit $? #*/
It's fun try it out! Just make this the first line of the file.