Go Cheatsheet - Run External Process
Run External Process
We can use os/exec module's Command function to call external program.
Use Output
proc := exec.Command("ls", "-l")
output, err := proc.Output()
if err != nil {
log.Fatalln("Process running error", err)
}
fmt.Println(string(ou...
hn.0xbf.me2 min read