LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

go-version

Print Go version and binary build info

TLDR

Show Go version
$ go version
copy
Show binary's Go version
$ go version [binary]
copy
Show version of all binaries
$ go version -m [binary]
copy

SYNOPSIS

go version [options] [files]

DESCRIPTION

go version prints the Go runtime version of the toolchain when invoked without arguments. When given file arguments — executables or directories of executables — it reports the Go version each binary was built with, and with -m also dumps the build-time module dependency graph (`go.mod`-equivalent info) embedded in the binary.Directory arguments are walked recursively; non-Go executables are skipped silently unless -v is given.

PARAMETERS

FILES

Binary files to inspect.
-m
Print each executable's embedded module version information (added in Go 1.13).
-v
Report unrecognized files (otherwise non-Go files are silently skipped when scanning a directory).
--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

Module info is only embedded for binaries built by Go 1.13+. Heavily stripped binaries (e.g., built with `-ldflags="-w -s"` and then run through external strippers that remove the Go build info section) may not report any version.

HISTORY

go version is part of the Go toolchain, extended to report binary build information for debugging.

SEE ALSO

go(1), go-build(1)

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