Documentation
¶
Overview ¶
Package version provides build version information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version of the build. Version = "dev" // GitCommit is the git commit hash of the build. GitCommit = "unknown" // BuildTime is the time the build was created. BuildTime = "unknown" )
These variables are set at build time via ldflags.
Functions ¶
func Fprint ¶ added in v0.30.0
Fprint writes version information for the named binary to w. When asJSON is true it writes the indented JSON form of Info; otherwise it writes a single human-readable line.
func Info ¶ added in v0.30.0
Info returns the build version fields as a map suitable for JSON output.
Types ¶
type Transport ¶ added in v0.5.0
type Transport struct {
Base http.RoundTripper
}
Transport wraps an http.RoundTripper to inject the panda User-Agent header.
Click to show internal directories.
Click to hide internal directories.