Answers for "run golang terminal"

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
0

run go file from terminal

// Run
go run filename

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

Browse Popular Code Answers by Language