Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleVersion ¶
ModuleVersion represents a module's path and version.
type VersionInfo ¶
type VersionInfo struct { GoVersion string AppVersion string OS string Arch string VCSRevision string BuildDate time.Time Dependencies []ModuleVersion }
VersionInfo contains build-related information.
func New ¶
func New(version, commit, date string) VersionInfo
New creates a new VersionInfo instance with the provided version and dependencies.
func (VersionInfo) String ¶
func (b VersionInfo) String() string
String returns a formatted string of the build information.
Click to show internal directories.
Click to hide internal directories.