You could also look at the existing Go <-> Python interfaces and see how they handle such issues. Might give you hints.
https://github.com/qur/gopy. (python 3.11) https://github.com/glycerine/pyg (python 3.7.1) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/82d6388a-7694-4a8e-bc65-750178052371n%40googlegroups.com.