💾 Archived View for unixcat.coffee › techne › go.gmi captured on 2022-01-08 at 13:45:36. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
Best practices for a new Go developer
See the following articles for more details:
Using Go as a scripting language
Story: Writing Scripts with Go
Install gorun:
go install github.com/erning/gorun@latest sudo mv ~/go/bin/gorun /usr/local/bin
Register the Go script binary format with the kernel:
echo ":golang:E::go::/usr/local/bin/gorun:OC" sudo tee /proc/sys/fs/binfmt_misc/register
If success, a new file should exist at /proc/sys/fs/binfmt_misc/golang.