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

I recently discovered the multi-command shebangs and started using it to develop scripts in Golang. E.g. `//usr/bin/env true; go run `dirname $0`/*.go; exit $?` at the top of my Golang code's `main` package makes it a Golang script.

The multi-line shebangs take it a step further, and am glad this page exists as it documents how to do it in various languages.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: