Go学习记录
Go语言之旅
- basic syntax and data structures: 基本语法和数据结构
- methods and interfaces: 方法和接口
- Go's concurrency primitives: Go语言并发基础
Go语言四十二章经
gin-gonic/gin
开源框架Use a Vendor tool like Govendor
- go get govendor
go get github.com/kardianos/govendor
- Create your project folder and cd inside
mkdir -p $GOPATH/src/github.com/myusername/project && cd "$_"
- Vendor init your project and add gin
govendor init govendor fetch github.com/gin-gonic/gin@v1.3
- Copy a starting template inside your project
curl https://raw.githubusercontent.com/gin-gonic/examples/master/basic/main.go > main.go
- Run your project
go run main.go