News Score: Score the News, Sort the News, Rewrite the Headlines

Building static binaries with Go on Linux

One of Go's advantages is being able to produce statically-linked binaries [1]. This doesn't mean that Go always produces such binaries by default, however; in some scenarios it requires extra work to make this happen. Specifics here are OS-dependent; here we focus on Unix systems. Basics - hello world This post goes over a series of experiments: we take simple programs and use go build to produce binaries on a Linux machine. We then examine whether the produced binary is statically or dynamical...

Read more at eli.thegreenplace.net

© News Score  score the news, sort the news, rewrite the headlines