3 ms·
I'm a dabbler in Go, far from an expert. But I'm not familiar with a capability to use, say, native MacOS platform libraries from a go app that I'm compiling in
by artimaeis 2y ago
I'm a dabbler in Go, far from an expert. But I'm not familiar with a capability to use, say, native MacOS platform libraries from a go app that I'm compiling in Windows/Linux without using a VM of some sort to compile it. If that's possible I'd love to learn more.
- hnlmorg 2y agoIf you’re calling against shared libraries using cgo then things are a little more tricky, but still doable. But if it’s native Go code, then cross platform compiling is just an a few environmental variables GOOS=darwin GOARCH=arm64