LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

go-tool

Run Go toolchain programs

TLDR

List available tools
$ go tool
copy
Run pprof
$ go tool pprof [profile.pb.gz]
copy
Run trace
$ go tool trace [trace.out]
copy
Run compile
$ go tool compile [file.go]
copy
Run objdump
$ go tool objdump [binary]
copy

SYNOPSIS

go tool [tool] [arguments]

DESCRIPTION

go tool runs Go toolchain programs that underlie the standard go commands. It provides access to low-level tools like the compiler, linker, profiler, and tracer.The command is used for advanced debugging, profiling, and understanding compiler behavior. Each tool has its own options and usage patterns.

PARAMETERS

TOOL

Tool name to run.
ARGUMENTS
Tool-specific arguments.
pprof
Profile viewer.
trace
Execution tracer.
compile
Go compiler.
link
Go linker.
objdump
Object file disassembler.
--help
Display help information.

INSTALL

sudo apt install gccgo-go
copy
sudo dnf install gcc-go
copy
sudo pacman -S gcc-go
copy
sudo apk add gcc-go
copy
sudo zypper install gcc-go
copy
brew install go
copy
nix profile install nixpkgs#go
copy

CAVEATS

Low-level tools. May change between versions. For advanced users.

HISTORY

go tool provides access to Go toolchain internals, supporting debugging and optimization workflows.

SEE ALSO

go(1), go-build(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid