💾 Archived View for unixcat.coffee › techne › go.gmi captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
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.
Last updated: 2021-11-19