在命令行执行go命令查看相关的Go语言命令:

Go is a tool for managing Go source code.

Usage:

    go command [arguments]

The commands are:

    build       compile packages and dependencies
clean remove object files and cached files
doc show documentation for package or symbol
env print Go environment information
bug start a bug report
fix update packages to use new APIs
fmt gofmt (reformat) package sources
generate generate Go files by processing source
get download and install packages and dependencies
install compile and install packages and dependencies
list list packages
run compile and run Go program
test test packages
tool run specified go tool
version print Go version
vet report likely mistakes in packages Use "go help [command]" for more information about a command. Additional help topics: c calling between Go and C
buildmode build modes
cache build and test caching
filetype file types
gopath GOPATH environment variable
environment environment variables
importpath import path syntax
packages package lists
testflag testing flags
testfunc testing functions Use "go help [topic]" for more information about that topic.

实用命令

godoc -http=:8888    本地启动一个go官网
也可以
go doc fmt.printf 直接在本地查看函数表准用法

go env用于打印Go语言的环境信息。

go run命令可以编译并运行命令源码文件。

go get可以根据要求和实际情况从互联网上下载或更新指定的代码包及其依赖包,并对它们进行编译和安装。

go build命令用于编译我们指定的源码文件或代码包以及它们的依赖包。

go install用于编译并安装指定的代码包及它们的依赖包。

go clean命令会删除掉执行其它命令时产生的一些文件和目录。

go doc命令可以打印附于Go语言程序实体上的文档。我们可以通过把程序实体的标识符作为该命令的参数来达到查看其文档的目的。

go test命令用于对Go语言编写的程序进行测试。

go list命令的作用是列出指定的代码包的信息。

go fix会把指定代码包的所有Go语言源码文件中的旧版本代码修正为新版本的代码。

go vet是一个用于检查Go语言源码中静态错误的简单工具。

go tool pprof命令来交互式的访问概要文件的内容。

最新文章

  1. mac下获取应用签名
  2. Python学习笔记(2)
  3. 从Java看跨平台的.NET需要些什么?
  4. quartz Web项目基础最简单配置
  5. Oracle中对表的操作
  6. 开源网络备份软件 bacula 的安装、配置和运行
  7. ORA-3136报错
  8. 虚拟机Linux 的一些基础命令和注释
  9. vmware和centOS的安装
  10. python自动化--文件处理
  11. 在Mac下配置Maven环境
  12. CodeForces-749A
  13. zzw原创_mysql脚本打印出提示信息
  14. 一加3刷不了官方recoery
  15. 微信小程序——template的使用方法
  16. php -- php模拟浏览器访问网址
  17. PLsql登录数据库提示密码即将过期-
  18. thinkphp3 行为(behavior)分析和基本使用
  19. Fedora Server 上配置 MariaDb 集群
  20. 64_p4

热门文章

  1. How to check if directory exist using C++ and winAPI
  2. Redis持久化存储(三)
  3. 基于docker-compose部署LNMP
  4. RF(控制台及日志输出中文乱码)
  5. nginx的数据结构集合(随时更新)
  6. Unity 游戏框架搭建 2019 (四十二、四十三) MonoBehaviour 简化 & 定时功能
  7. 《C程序设计语言》 练习1-22
  8. 分治思想--快速排序解决TopK问题
  9. YOLACT : 首个实时one-stage实例分割模型,29.8mAP/33.5fps | ICCV 2019
  10. NLTK的安装与简单测试