Go 语言虽然是静态编译型语言,但是它却拥有脚本化的语法,支持多种编程范式(函数式和面向对象)。

hello world

1
2
3
4
5
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
1
2
3
go run hello-world.go
go build hello-world.go
./hello-world

http://studygolang.com/articles/1941

https://gobyexample.com/hello-world