Skip to content
raphael valentin edited this page Oct 25, 2017 · 8 revisions

Welcome to the golang_to_python wiki!

golang_to_python shows a simple example how to create a python module that includes a golang code with its wrap interfaces to be imported into python just by using cython. We can note that using this strategy, it allows to simplify the wrapping interface between golang and python by:

  1. removing cgo preamble such as shown in https://blog.filippo.io/building-python-modules-with-go-1-5/,
  2. improving the wrapping interface compatibility with different version of Python (e.g. no more #include of the Python.h headers in the golang code).

It requires golang >= 1.9 (not tested for previous version)

Clone this wiki locally