Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: