码迷,mamicode.com
首页 > 其他好文 > 详细

go 命令

时间:2020-01-02 22:08:02      阅读:83      评论:0      收藏:0      [点我收藏+]

标签:tin   pre   mod   pes   mat   模块   function   UNC   安装包   

Usage:

    go <command> [arguments]

The commands are:

    bug         启动错误报告
    build       编译包和依赖项
    clean       删除对象文件和缓存文件
    doc         显示包或符号的文档
    env         打印Go环境信息
    fix         更新包以使用新的Api
    fmt         gofmt (reformat) package sources
    generate    generate Go files by processing source
    get         将依赖项添加到当前模块并安装它们
    install     编译安装包和依赖项
    list        列出包或模块
    mod         模块维护
    run         编译并运行Go程序
    test        test packages
    tool        运行指定的go工具
    version     print Go version
    vet         报告包中可能出现的错误

Use "go help <command>" for more information about a command.

Additional help topics:

    buildmode   build modes
    c           calling between Go and C
    cache       build and test caching
    environment environment variables
    filetype    file types
    go.mod      the go.mod file
    gopath      GOPATH environment variable
    gopath-get  legacy GOPATH go get
    goproxy     module proxy protocol
    importpath  import path syntax
    modules     modules, module versions, and more
    module-get  module-aware go get
    module-auth module authentication using go.sum
    module-private module configuration for non-public modules
    packages    package lists and patterns
    testflag    testing flags
    testfunc    testing functions

Use "go help <topic>" for more information about that topic.

go 命令

标签:tin   pre   mod   pes   mat   模块   function   UNC   安装包   

原文地址:https://www.cnblogs.com/msvc/p/12142128.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!