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

You don't even need to end the file in `.go` or the like when using shebangs, and any self-respecting editor will be good at parsing out shebangs to identify file types (... well, Emacs seems to do it well enough for me)

no need to name your program foo.go when you could just name it foo





The `go run` tool will not execute (or even recognize) a file that does not end in .go, so this is not good advice.

Unfortunate! Yet another little bit of Go design decision that makes things worse for, in my opinion, no reason.



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

Search: