MCPcopy Create free account
hub / github.com/basecamp/hey-cli / init

Function init

internal/version/version.go:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 Date = "unknown"
13)
14
15// fromBuildInfo records whether Version was derived from debug.ReadBuildInfo
16// rather than stamped via ldflags. Build-info versions come from `go install`
17// (stable tags and pseudo-versions alike) and cannot be self-updated in place.
18var fromBuildInfo bool
19
20func init() {
21 info, ok := debug.ReadBuildInfo()
22 Version, fromBuildInfo = classify(Version, info, ok)
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected