For the record, I could do what I needed using the `//go:linkname` directive.
My instrumentation tool injects statements that need features from another package that I cannot import. So I forward declare functions using a given link name that is implemented in another package - similarly to what can be found in the stdlib. This way, the forward declarations get resolved at link time - similarly to what you can do with `extern` with GCC. -- 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/e871a4f3-b9e4-4714-aec1-ca0fa95232f4%40googlegroups.com.