$ sudo yum install golang $ vi hello.go +package main + +import "fmt" + +func main() { + fmt.Println("hello, world") +} $ go build hello.go $ go run hello.go hello, world
$ sudo yum install golang $ vi hello.go +package main + +import "fmt" + +func main() { + fmt.Println("hello, world") +} $ go build hello.go $ go run hello.go hello, world