Hello Go

开始学golang

上手文档https://golang.org/doc/install

tour:https://tour.golang.org

系统: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

以上。

posted @ 2016-05-22 13:57  chpx  阅读(178)  评论(0编辑  收藏  举报