3 ms·
Go includes this information by default now. It is accessible with the runtime/debug package in the standard library https://pkg.go.dev/runtime/debug#BuildSett
by verdverm 2y ago
Go 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...