An example to generate complex structs in Go / cgo and return them to Python using CTypes
- Clone the repo
git clone https://github.com/danhitchcock/go_python_struct.git
- CD to the directory
cd go_python_struct
- Build and run
go build -o MixedStruct.so -buildmode=c-shared MixedStruct.go && python MixedStruct.py