You could export the C function in a Go wrapper in package A, and use that. Maybe another exported Go wrapper is needed in package B, I don't know.
-- 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.