While browsing the examples at https://golang.org/misc/cgo/ I noticed that a lot of them don't actually specify `package main`. Yet all the C shared lib tutorials say that all my exported code has to be in `package main`.
I need to have some code translating between Go and C, do I really have to put all of this inside package main? It's going to be a lot, or I will have to severely restrict the functionality of the exported C interface. -- 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/b75a3ddb-5b2d-4368-b350-c5ae4d5a813f%40googlegroups.com.