Full returns the full version string for display.
()
| 21 | info, ok := debug.ReadBuildInfo() |
| 22 | Version, fromBuildInfo = classify(Version, info, ok) |
| 23 | } |
| 24 | |
| 25 | // classify decides what a binary reports itself as. An ldflags-stamped version stands as |
| 26 | // stamped. An unstamped ("dev") binary adopts the toolchain-recorded module version only |
| 27 | // for a true `go install module@version` build. A build from a source checkout is still a |
| 28 | // dev build — Go stamps such a build's main-module version with a pseudo-version derived |
| 29 | // from the checkout's VCS state, which is exactly the shape a `go install` build reports, |
| 30 | // and the difference is that only the checkout build carries the VCS settings. So a |
| 31 | // version with vcs metadata behind it stays "dev". |
nothing calls this directly
no outgoing calls
no test coverage detected