Hacker News new | past | comments | ask | show | jobs | submit login

Or, even better, `./main`



That's not better but confusing as the "main" binary doesn't exist (The main point of go run), and you'd always have to type the full name as you can't autocomplete it.


Who said it needs to be a binary? Name the source file "main" and put a shebang at the top.




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

Search: