Skip to content

Instantly share code, notes, and snippets.

@blizzarddreams
Created December 11, 2015 16:35
Show Gist options
  • Select an option

  • Save blizzarddreams/9a410f7595c605538767 to your computer and use it in GitHub Desktop.

Select an option

Save blizzarddreams/9a410f7595c605538767 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"os/exec"
)
func main() {
err := exec.Command("python").Run()
if err != nil {
panic(err)
}
out, err := exec.Command("print(4+4)").Output()
if err != nil {
panic(err)
}
fmt.Println(string(out))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment