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-jsonis specified without-m,go versionreports 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
- ubuntu stonking: golang-go 2:1.27~1 Β· Go
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms