Skip to content

Instantly share code, notes, and snippets.

@wilkice
Created December 17, 2021 07:46
Show Gist options
  • Save wilkice/1b66013db0230a4190c59b6383fc9616 to your computer and use it in GitHub Desktop.
Save wilkice/1b66013db0230a4190c59b6383fc9616 to your computer and use it in GitHub Desktop.
[go execute command]
package main
import (
"log"
"os/exec"
)
func main() {
cmd := exec.Command("aaa", "-za")
output, err := cmd.CombinedOutput()
// don't use cmd.Run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment