Building Go Executables: Cross compilation made easy!

preview_player
Показать описание
In today’s example, we have written a client that we want to distribute for Windows, Linux, Mac, etc…

There are two ways we can do this:
When running go build, set an environment variable (i.e. For linux, GOOS=linux)

----

Other Links:
Рекомендации по теме
Комментарии
Автор

If it uses Makefile, why not just use instead? It's like you''re making a knife using a knife...

costa