hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
Run directly
$ go run hello.go
Hello, world!
Or try it out in the Go repl
Comments
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
Run directly
$ go run hello.go
Hello, world!
Or try it out in the Go repl