1
0
Fork 0
mirror of https://github.com/imjasonh/version synced 2026-07-08 06:45:18 +00:00
version/README.md
Jason Hall 0b961c33da
initial commit
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-04-05 11:10:38 -04:00

403 B

version

Simply get the version information from Go BuildInfo.

Usage:

import "github.com/imjasonh/version"

func main() {
    fmt.Println(version.Get())
}

This code is not maintained, and I will not accept PRs. Fork it if you want it.

Please stop using ldflags to embed this information. Or if you do, at least embed a reproducible time.