Hello!

I am trying to find out the best way to distribute Go bindings to a C 
library. I would like to avoid asking my users to install their target gcc 
because of cgo. So my idea is to avoid cgo by avoiding having my user 
compiling the bindings, by therefore distributing an already compiled 
package for every target GOOS and GOARCH.

Some discussions on Go plugins I found are about this precise case but it 
is not supported on Windows so far. 
But I really don't get why isn't it possible to simply use the archive 
build mode `-buildmode archive` on the bindings, then include the resulting 
Go package archive in the repo, and simply use some go CLI option in order 
to use the correct archive for the target GOOS/GOARCH?

I couldn't find out how to pass such option to the go compiler so far, so I 
was hoping for some help.

Thanks for your help,
Julio

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/601106da-f825-47cf-b0b1-56a2e026d7e4%40googlegroups.com.

Reply via email to