4 ms·
It may be possible to replace the dependency on the python script by using objective c to call the required libraries, then expose a c API that can be called fr
by shoo 6y ago
It may be possible to replace the dependency on the python script by using objective c to call the required libraries, then expose a c API that can be called from the go application. E.g. https://gist.github.com/porty/6b94f7f908ed7af0f070 https://gist.github.com/porty/6b94f7f908ed7af0f070 https://github.com/caseymrm/menuet https://github.com/caseymrm/menuet
That said, I've seen messier things than python-in-go shipped and used reliably in production to solve business problems.
- jamil7 6y agoThat or just write the whole script in Python and avoid a needless Go dependency.
- rootVIII 6y agoThat's a fantastic idea. I actually looked into it because I really didn't want to use Python to create the output PDFs. I have experience making C bindings in Go, but had issues with Objective C (I also don't know Obj-C). If you are able to remove the Python dependency with a CGo please open a PR! Thanks for the feedback too...