If you want to execute linux commands in Golang, then you can use exec.Command
:
cmd := exec.Command("echo", "hello world")
res, _ := cmd.CombinedOutput()
fmt.Println(string(res))
If you want to execute linux commands in Golang, then you can use exec.Command
:
cmd := exec.Command("echo", "hello world")
res, _ := cmd.CombinedOutput()
fmt.Println(string(res))