Go语言简介
Last updated
Last updated
package main
import "fmt"
func main() {
fmt.Println("this is a go program")
}go run hello.go # 运行程序
go build hello.go # 编译程序,生成可执行文件hello
./hello # 直接运行编程后的可执行文件go run xxx.go # 运行程序
go build xxx.go # 编译程序
go get {url} # 动态获取远程代码包的,目前支持的有BitBucket、GitHub、Google Code和Launchpad
go clean # 移除当前源码包和关联源码包里面编译生成的文件140.82.114.3 github.com
151.101.185.194 github.global.ssl.fastly.net