Skip to content

Instantly share code, notes, and snippets.

@jieniu
Last active May 26, 2016 08:03
Show Gist options
  • Save jieniu/dbaa092089a12a68ac00233e2442a2a1 to your computer and use it in GitHub Desktop.
Save jieniu/dbaa092089a12a68ac00233e2442a2a1 to your computer and use it in GitHub Desktop.
go的工具
  1. go build – 编译包,不安装
  2. go get – 解析并安装依赖,
    // 嵌套获取所有包依赖  
    go get ./...
    如果包有更新,可以使用-u参数进行更新
    
    go get -u package
    
  3. go test – 执行测试用例和性能测试,
  4. go install – 安装包,
  5. go doc – 生成文档,
  6. go fmt – 格式化代码,
  7. go run – 构建并执行应用,
  8. go tool – 调用扩展工具,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment