标签:
开始学golang
上手文档http://docs.studygolang.com/doc/install
系统:windows10 64bit
从文档上抄一段代码,保存为hello.go
// You can edit this code!
// Click here and start typing.
package main
import "fmt"
func main() {
fmt.Println("Hello, World")
}
运行命令:
go run hello.go
运行结果:
Hello, World
以上。
标签:
原文地址:http://www.cnblogs.com/chpx/p/5516646.html