How cgo Works in Go: The Two Compilers and a Bit of Magic
cgo runs the C compiler to learn C types, rewrites your Go source into Cfunc wrappers, generates matching C glue that passes arguments in a struct, and each call goes through a …
cgo runs the C compiler to learn C types, rewrites your Go source into Cfunc wrappers, generates matching C glue that passes arguments in a struct, and each call goes through a …