Go - Hello World
Hello World Program
hello.go
go
1package main
2
3import "fmt"
4
5func main() {
6 fmt.Println("Hello, World!")
7}
Compile & Run
bash
$go run hello.go
Hello, World!
A blog about programming, Web development, Open Source, Linux and DevOps.
1package main
2
3import "fmt"
4
5func main() {
6 fmt.Println("Hello, World!")
7}
$go run hello.go
Hello, World!