go命令详解

2023/05/05 go

Go语言有一套完整的操作命令,掌握好它们,开发事半功倍哦,下面就来介绍这些命令的使用方法。

在终端直接输入 go 所有的命令就全部出来了:

	build       compile packages and dependencies
	clean       remove object files and cached files
	doc         show documentation for package or symbol
	env         print Go environment information
	fix         update packages to use new APIs
	fmt         gofmt (reformat) package sources
	generate    generate Go files by processing source
	get         add dependencies to current module and install them
	install     compile and install packages and dependencies
	list        list packages or modules
	mod         module maintenance
	work        workspace maintenance
	run         compile and run Go program
	test        test packages
	tool        run specified go tool
	version     print Go version
	vet         report likely mistakes in packages

点击查看使用说明

Search

    Table of Contents