Answers for "how to run golang from a linux terminal"

Go
0

how to execute linux command in golang

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

run go file from terminal

// Run
go run filename

// Build
go build filename
Posted by: Guest on October-22-2021

Code answers related to "how to run golang from a linux terminal"

Browse Popular Code Answers by Language