Discover Packages
miren.dev/runtime
version
package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Apr 14, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
Version = "unknown"
Commit = "unknown"
BuildDate = "unknown"
)
Build-time variables set via -ldflags
Branch returns the branch name if the binary was built from a branch (e.g. "main:abc123").
Returns the tag name for tagged releases (e.g. "v0.2.0"), and empty for unknown versions.
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.