Thanks for reading my question. I'm trying to map c <type> to Go "C.<type>"
C int -> go C.int C unsigned char -> ? C char -> ? C unsigned short -> ? C double -> ? C __int64 -> ? C *char -> C.string On Friday, September 30, 2016 at 1:27:13 AM UTC-4, Ian Lance Taylor wrote: > > On Thu, Sep 29, 2016 at 8:59 PM, <webus...@gmail.com <javascript:>> > wrote: > > I have a basic example working of calling back into go from C. If I have > a C > > function as: > > > > func Add(a, b C.Int) C.Int { > > return a + b > > } > > > > Where is the mapping of C type to C.<type> when I want to pass > additional > > types to Go : > > > > 1. Unsigned int > > 2. char > > 3. double > > 4. string > > 5. short > > etc... > > I'm sorry, I don't understand the question. The C type int maps to > the Go type C.int. > > 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.