Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Hey @buckaroogeek, yes, that's correct πŸ‘

// Variables injected during build-time.
var (
buildDate string // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
)

The dynamic stuff happens there:

func Get(verbose bool) (*Info, error) {
info, ok := debug.ReadBuildInfo()
if !ok {
return nil, errors.New("unable to retrieve build info")
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@buckaroogeek
Comment options

Answer selected by buckaroogeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants