1
0
Fork 0
mirror of https://github.com/imjasonh/version synced 2026-07-08 14:55:21 +00:00
version/README.md
2025-04-05 17:30:01 -04:00

457 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. It's like 50 lines, just copy it into your codebase.

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