Answers for "how to execute linux command in golang"

Go
0

how to execute linux command in golang

res := exec.Command("echo", "hello wordl")
stdin, _ := res.CombinedOutput()
fmt.Println(string(stdin))
Posted by: Guest on October-10-2021

Code answers related to "how to execute linux command in golang"

Browse Popular Code Answers by Language