0

I'm planning to write a python script that executes a machine learning algorithm. But, I need a go binary to implement it as a server extension (chirpstack server). Is it possible to compile a go binary using go code that executes an external python script ?

Newt573
  • 11
  • 5
    Yes. Use a `*Cmd` from the `os/exec` package. Create one using `exec.Command()`: https://pkg.go.dev/os/exec#Command – Zyl Apr 21 '22 at 22:09
  • Please provide enough code so others can better understand or reproduce the problem. – Community Apr 22 '22 at 00:23

0 Answers0