package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Dec 17, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
Version = "unknown"
Commit = "unknown"
BuildDate = "unknown"
)
Build-time variables set via -ldflags
type Info struct {
Version string `json:"version"`
Commit string `json:"commit"`
BuildDate time.Time `json:"build_date"`
}
Info represents version information
GetInfo returns the current version information
IsNewer returns true if this version info is newer than the other
JSON returns the version info as JSON
String returns the version info as a formatted string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.