GO-VERSION(1)

✨ GO-VERSION(1) ✨

okay bestie, so this is go-version from the Go programming tools and commands manual, and it's literally the cutest tiny tool β€” it just tells you versions. that's it. that's the job. and it ATE. πŸ’…


🌸 NAME 🌸

go-version β€” print Go version ✨


πŸŽ€ SYNOPSIS πŸŽ€

go version [-m] [-v] [-json] [file ...]

πŸ’– DESCRIPTION πŸ’–

so basically, Version prints the build information for Go binary files. iconic behavior fr fr.

go version reports the Go version used to build each of the named files. like, each one. all of them. it's thorough like that 😌

if you name no files on the command line, go version prints its own version information. it's giving main character energy β€” when there's nobody else to talk about, it talks about itself. valid tbh. πŸ‘‘

if you name a directory, go version walks that directory recursively, looking for recognized Go binaries and reporting their versions. it's hunting them down. respectfully. πŸ¦‹

by default, go version does not report unrecognized files found during a directory scan. it's polite like that, it minds its business. but the -v flag causes it to report unrecognized files too β€” so if you want the receipts on everything, -v has you. πŸ‘€

the -m flag causes go version to print each file's embedded module version information, when available. in the output, the module information consists of multiple lines following the version line, and each of those lines is indented by a leading tab character. not spaces. a tab. the way it should be. periodt. 🫢

the -json flag is similar to -m but outputs the runtime/debug.BuildInfo in JSON format. so structured, so parseable, so slay. ✨

⚠️ but listen β€” if flag -json is specified without -m, go version reports an error. like, it's not gonna do it. don't try it. the vibe check fails immediately. πŸ’€

#🌟 SEE ALSO 🌟

go doc runtime/debug.BuildInfo.


πŸ‘‘ AUTHOR πŸ‘‘

this manual page was created using help2man and afterwards updating the output. it is maintained by the Debian Go Compiler Team <team+go-compiler@tracker.debian.org> for the Debian project (and may be used by others). shoutout to them, absolute icons, keeping the docs cute and correct πŸ’œ


okay that's the whole page bestie, you're officially a go version expert, no cap 🧚🌸 Thanks for reading, mwah β€” this was Go 1.27, dated August 2026, from the GO-VERSION(1) page. bye bye! πŸŽ€πŸ’–

πŸ“¦ where this page comes from