Skip to content

Tag: go

Accessing C array in golang

I have two files, module.go and test.py. My goal is to speed up some calculations that is done in python, but have an issue accessing array of integers in go. module.go and simple test file in python: After compiling go module with go build -buildmode=c-shared -o gomodule.so module.go and fire up python file …