2 ms·
How to include Git version information in a Golang binary (2023)
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- verdverm 2y agoGo includes this information by default now. It is accessible with the runtime/debug package in the standard library https://pkg.go.dev/runtime/debug#BuildSetting https://pkg.go.dev/runtime/debug#BuildSetting Example usage: https://github.com/hofstadter-io/hof/blob/_dev/cmd/hof/verinfo/verinfo.go https://github.com/hofstadter-io/hof/blob/_dev/cmd/hof/verin...