Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fsmv
on Aug 20, 2023
|
parent
|
context
|
favorite
| on:
Scripting with Go (2022)
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: