Golang Execute Bash Command
cmd := exec.Command("echo", "hello wordl")
res, _ := cmd.CombinedOutput()
fmt.Println(string(res))
Restu Wahyu Saputra
cmd := exec.Command("echo", "hello wordl")
res, _ := cmd.CombinedOutput()
fmt.Println(string(res))
cmd := exec.Command("go", "-v")
res, _ := cmd.Output()
fmt.Print(string(res))