Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.97 KB

golang-dev.md

File metadata and controls

47 lines (36 loc) · 1.97 KB

IDE

Visual Studio Code

入门书籍

  1. Go语言程序设计
  2. Go语言实战

进阶书籍

  1. Go语言高级编程

团队开发

  1. Effective Go
  2. CodeReviewComments

补充知识

  • golang.org/x/包的镜像地址为github.com/golang/
    • Windows 目录联接

      mklink /J %GOPATH%\src\golang.org\x %GOPATH%\src\github.com\golang
      
    • Linux 软连接

      ln -s $GOPATH/src/github.com/golang $GOPATH/src/golang.org/x
      
    • 下载示例 / vscode-go extension

      git clone https://github.com/golang/text %GOPATH%/src/github.com/golang/text
      git clone https://github.com/golang/crypto %GOPATH%/src/github.com/golang/crypto
      git clone https://github.com/golang/net %GOPATH%/src/github.com/golang/net
      git clone https://github.com/golang/tools %GOPATH%/src/github.com/golang/tools
      git clone https://github.com/golang/sys %GOPATH%/src/github.com/golang/sys
      git clone https://github.com/golang/lint %GOPATH%/src/github.com/golang/lint
      
      #vscode-go
      go get -u -v github.com/mdempsky/gocode
      go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
      go get -u -v github.com/ramya-rao-a/go-outline
      go get -u -v github.com/acroca/go-symbols
      go get -u -v golang.org/x/tools/cmd/guru
      go get -u -v golang.org/x/tools/cmd/gorename
      go get -u -v github.com/go-delve/delve/cmd/dlv
      go get -u -v github.com/stamblerre/gocode
      go get -u -v github.com/rogpeppe/godef
      go get -u -v golang.org/x/tools/cmd/goimports
      go get -u -v golang.org/x/lint/golint
      #go get -u -v github.com/golangci/golangci-lint/cmd/golangci-lint