Back to godoc.org
cmd

Directory cmd

go1.14.6
Latest Go to latest
Published: Jul 16, 2020 | License: BSD-3-Clause | Standard library
Path Synopsis
addr2line Addr2line is a minimal simulation of the GNU addr2line tool, just enough to support pprof.
api Binary api computes the exported API of a set of Go packages.
asm Asm, typically invoked as “go tool asm”, assembles the source file into an object file named for the basename of the argument source file with a .o suffix.
asm/internal/arch Package arch defines architecture-specific information and support functions.
asm/internal/asm Package asm implements the parser and instruction generator for the assembler.
asm/internal/flags Package flags implements top-level flags and the usage message for the assembler.
asm/internal/lex Package lex implements lexical analysis for the assembler.
buildid Buildid displays or updates the build ID stored in a Go package or binary.
cgo Cgo enables the creation of Go packages that call C code.
compile Compile, typically invoked as “go tool compile,” compiles a single Go package comprising the files named on the command line.
compile/internal/amd64
compile/internal/arm
compile/internal/arm64
compile/internal/gc
compile/internal/logopt
compile/internal/mips
compile/internal/mips64
compile/internal/ppc64
compile/internal/riscv64
compile/internal/s390x
compile/internal/ssa
compile/internal/syntax
compile/internal/test
compile/internal/types
compile/internal/wasm
compile/internal/x86
cover Cover is a program for analyzing the coverage profiles generated by 'go test -coverprofile=cover.out'.
dist Dist helps bootstrap, build, and test the Go distribution.
doc Doc (usually run as go doc) accepts zero, one or two arguments.
fix Fix finds Go programs that use old APIs and rewrites them to use newer ones.
go Go is a tool for managing Go source code.
go/internal/auth Package auth provides access to user-provided authentication credentials.
go/internal/base Package base defines shared basic pieces of the go command, in particular logging and the Command structure.
go/internal/bug Package bug implements the “go bug” command.
go/internal/cache Package cache implements a build artifact cache.
go/internal/cfg Package cfg holds configuration shared by multiple parts of the go command.
go/internal/clean Package clean implements the “go clean” command.
go/internal/cmdflag Package cmdflag handles flag processing common to several go tools.
go/internal/doc Package doc implements the “go doc” command.
go/internal/envcmd Package envcmd implements the “go env” command.
go/internal/fix Package fix implements the “go fix” command.
go/internal/fmtcmd Package fmtcmd implements the “go fmt” command.
go/internal/generate Package generate implements the “go generate” command.
go/internal/get Package get implements the “go get” command.
go/internal/help Package help implements the “go help” command.
go/internal/imports
go/internal/list Package list implements the “go list” command.
go/internal/load Package load loads packages.
go/internal/lockedfile Package lockedfile creates and manipulates files whose contents should only change atomically.
go/internal/lockedfile/internal/filelock Package filelock provides a platform-independent API for advisory file locking.
go/internal/modcmd Package modcmd implements the “go mod” command.
go/internal/modconv
go/internal/modfetch
go/internal/modfetch/codehost Package codehost defines the interface implemented by a code hosting source, along with support code for use by implementations.
go/internal/modget Package modget implements the module-aware “go get” command.
go/internal/modinfo
go/internal/modload
go/internal/mvs Package mvs implements Minimal Version Selection.
go/internal/par Package par implements parallel execution helpers.
go/internal/renameio Package renameio writes files atomically by renaming temporary files.
go/internal/robustio Package robustio wraps I/O functions that are prone to failure on Windows, transparently retrying errors up to an arbitrary timeout.
go/internal/run Package run implements the “go run” command.
go/internal/search
go/internal/str Package str provides string manipulation utilities.
go/internal/test
go/internal/tool Package tool implements the “go tool” command.
go/internal/txtar Package txtar implements a trivial text-based file archive format.
go/internal/version Package version implements the “go version” command.
go/internal/vet Package vet implements the “go vet” command.
go/internal/web Package web defines minimal helper routines for accessing HTTP/HTTPS resources without requiring external dependencies on the net package.
go/internal/work
gofmt Gofmt formats Go programs.
internal/bio Package bio implements common I/O abstractions used within the Go toolchain.
internal/browser Package browser provides utilities for interacting with users' browsers.
internal/buildid
internal/diff Package diff implements a Diff function that compare two inputs using the 'diff' tool.
internal/dwarf Package dwarf generates DWARF debugging information.
internal/edit Package edit implements buffered position-based editing of byte slices.
internal/gcprog Package gcprog implements an encoder for packed GC pointer bitmaps, known as GC programs.
internal/goobj Package goobj implements reading of Go object files and archives.
internal/goobj2
internal/obj
internal/obj/arm
internal/obj/arm64 Package arm64 implements an ARM64 assembler.
internal/obj/mips
internal/obj/ppc64 Package ppc64 implements a PPC64 assembler that assembles Go asm into the corresponding PPC64 binary instructions as defined by the Power ISA.
internal/obj/riscv
internal/obj/s390x
internal/obj/wasm
internal/obj/x86
internal/objabi Originally, Go object files were Plan 9 object files, but no longer.
internal/objfile Package objfile implements portable access to OS-specific executable files.
internal/src
internal/sys
internal/test2json Package test2json implements conversion of test binary output to JSON.
link Link, typically invoked as “go tool link,” reads the Go archive or object for a package main, along with its dependencies, and combines them into an executable binary.
link/internal/amd64
link/internal/arm
link/internal/arm64
link/internal/ld
link/internal/loadelf Package loadelf implements an ELF file reader.
link/internal/loader
link/internal/loadmacho Package loadmacho implements a Mach-O file reader.
link/internal/loadpe Package loadpe implements a PE/COFF file reader.
link/internal/loadxcoff Package loadxcoff implements a XCOFF file reader.
link/internal/mips
link/internal/mips64
link/internal/objfile Package objfile reads Go object files for the Go linker, cmd/link.
link/internal/ppc64
link/internal/riscv64
link/internal/s390x
link/internal/sym
link/internal/wasm
link/internal/x86
nm Nm lists the symbols defined or used by an object file, archive, or executable.
objdump Objdump disassembles executable files.
pack Pack is a simple version of the traditional Unix ar tool.
pprof Pprof interprets and displays profiles of Go programs.
test2json Test2json converts go test output to a machine-readable JSON stream.
trace Trace is a tool for viewing trace files.
vet Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.