[go-nuts] Re: export struct method to C-code as callback (cgo-related)

2016-06-18 Thread Andrey Salnikov
Thank you all guys for your replies! it helps me to understand how it works! really helpful! :) On Friday, June 17, 2016 at 8:32:53 PM UTC+6, Andrey Salnikov wrote: > > Hello, > > Could you guys please help me. > > I can't find how to export method function which belongs

Re: [go-nuts] export struct method to C-code as callback (cgo-related)

2016-06-17 Thread Andrey Salnikov
Hi Andrey! thanks for answer! But actually I don't understand how to receive context inside callback from C-code. May be I'm wrong here but as I understand you mean that I have to identify instance of *A using callback parameters received from C-side. But what about if I'll receive only sum of