GOOS=darwin GOARCH=amd64 go build hello.go …and your app works on Mac.
Marshall Banana
2

Dynamically linking a shared library (regardless of language) or depending on something that does will definitely reduce your code’s portability. If you can solve the problem by linking statically, thus including all of your dependencies in the binary, your app will be more portable. On the other hand, your binary’s size will increase, so it’s always a trade-off.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.