github email
Go Tutorial

Go Tutorial

学习一门语言最好的方式,就是熟读其文档。

0x00 安装

安装go语言是件轻松的事情,如果安装都非常困难,那么还有什么好说的。

Mac下安装

brew install go 

Windows下安装

推荐使用MSI installer方式安装,一直Next下去就可以了。

0x01 Hello,world!

package main

import (
	"fmt"
)

// Print Hello,world!
func main() {
	fmt.Printf("Hello,World!")
}

0x01 文档查阅

godoc -http=:6060

0x02 入门

  1. 文档介绍如何安装
http://localhost:6060/doc/install
  1. 如何编写go语言
http://localhost:6060/doc/code.html
  1. 如何高效的编写go语言
http://localhost:6060/doc/code.html
  1. 熟悉go语言的api
http://localhost:6060/pkg/

0x03 深入

  1. 已beego框架学习如何编写web项目
https://beego.me
  1. 关注go语言的Top项目
https://github.com/topics/go
  1. 学习go语言框架提供的第三方包
https://github.com/avelino/awesome-go