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)
Use a tool called Go releaser (goreleaser.com)
View the code used in this video: [ Ссылка ]
----
Access our online courses → [ Ссылка ]
Attend a live training → [ Ссылка ]
Other Links:
Website: [ Ссылка ]
Github: [ Ссылка ]
Twitter: [ Ссылка ]
Building Go Executables: Cross compilation made easy!
Теги
ardan labsardanlabssoftwaredevelopmentengineeringcomputer scienceprogrammingbackend developmentprogramming tutoriallearn programminglearn programming fastlearn backend developmentGo programming languagegolang tutorial for beginnersgolang tutoriallearn golearn golangMiki Tebekagolang cross compilecross compilationgolang cross compile arm64golang cross compile windows to linuxgolang cross compile to windowsgolang cross compile for mac