These are chat archives for nelsam/vidar

26th
Jul 2017
Kvaz1r
@Kvaz1r
Jul 26 2017 20:54
btw, maybe you know how do cross compilation in Go? I need compile one program to Mac and I decide use gox, but get error when try run on Mac. (Maybe it's because gox badly work with GO after 1.5). If I set corresponding value GOOS then I do not get final file for target platform, but instead update for my.
Samuel Nelson
@nelsam
Jul 26 2017 22:02
GOOS=darwin GOARCH=amd64 go build -o ./sometool-amd64-darwin
normally, go build will just output the name of the binary; you need to use -o some-file-name to tell it to output as a different file