1
0
Fork 0
mirror of https://github.com/imjasonh/version synced 2026-07-08 06:45:18 +00:00
version/README.md

17 lines
403 B
Markdown
Raw Normal View History

# `version`
Simply get the version information from Go [`BuildInfo`](https://pkg.go.dev/runtime/debug#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.