I have a go package foo, it is in $GOPATH/src/github.com/org/foo/
And I want to build a static library for C code to consume the Go library. But in order to do so, the cgo wrapper wrapper.go file needs to be using package main(see https://golang.org/cmd/go/#hdr-Description_of_build_modes , "-buildmode=c-archive"), and it's recommended to not put different packages into the same folder. So where is the best place to put the wrapper.go? I know there is a convention to put different source code files for different command CLI into $GOPATH/src/github.com/org/foo/cmd/ folder. E.g., $GOPATH/src/github.com/org/foo/cmd/cli_1. So is $GOPATH/src/github.com/org/foo/lib/foo a good place to put the cgo wrapper file for library foo? -- 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. For more options, visit https://groups.google.com/d/optout.