gorun:使用 Go 當 Script language

Golang 除了 Compile (build) 外,平常可以使用 go run 直接執行。

gorun 的作者想要在 go 的程式第一行加上類似 #!/usr/bin/go 就可以執行 .go 的作法

  • 詳見:GitHub - erning/gorun: gorun is a tool enabling one to put a "bang line" in the source code of a Go program to run it, or to run such a source code file explicitly. It was created in an attempt to make experimenting with Go more appealing to people used to Python and similar languages which operate most visibly with source code.

閱讀全文〈gorun:使用 Go 當 Script language〉