D
D
Dmitry Shnyrev2014-11-25 19:10:57
go
Dmitry Shnyrev, 2014-11-25 19:10:57

How to run a Python script from Go?

How to run a Python script from a Go application.
The point is this - you need to run a python script with some parameters and get some data back.
It’s just that more than once I’ve come across a situation that there are no normal libraries on Go, but on the same python (or any other), the issue is solved in 2 lines.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uvelichitel, 2014-11-25
@dmnBrest

General idea golang.org/pkg/os/exec/#example_Cmd_StdoutPipe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question