CGO and Clang not compiling on Mac for Typedef Enum Struct but working on Linux
I have a typedef enum struct defined as such
cgo : running 2 or more dynamic link GO from C executable
run C exe that linked with 2 GO dynamic link shared object .
text
How to apply `export LD_LIBRARY_PATH` in cgo
I use following main.go call cpp lib so
Golang passing sql.DB between C and Go
I’m writing on an encrypt for sql.DB connection, but have some problems in converting pointer between C and Go. Looks like sql.DB is not a simple struct in Go and have GoPointer, any chance can export a function returns *sql.DB to C, and call it by another Go?