On Wed, Jul 19, 2017 at 2:10 AM, Hiroshi Ioka <hirochacha...@gmail.com> wrote:
>
>> Before that change, newosproc0 was used when code built with
> -buildmode=c-archive did not use cgo.
>
> Is there any use case for shared libraries that don’t have exported
> functions?

Go code can use init functions to run code that does operations
without ever being directly called by non-Go code.  There is a test of
this in misc/cgo/testcshared/main2.c which runs the shared library in
misc/cgo/testcshared/src/libgo2.

Ian

-- 
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.

Reply via email to