Skip to content

Instantly share code, notes, and snippets.

@marekfilip
marekfilip / Golang interpreter.md
Last active April 10, 2019 09:37
Golang as script interpreter

Adding interpreter

  1. To register interpreter you need to install gorun.

  2. Then register interpreter to binfmt_misc, remember to change path to gorun (more about binfmt_misc)

    echo ':golang:E::go::/home/filip/go/bin/gorun:OC' | sudo tee /proc/sys/fs/binfmt_misc/register

Removing interpreter

@marekfilip
marekfilip / go-os-arch.md
Created February 4, 2019 20:30 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.8.3 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • android
  • darwin