versioninfo

package
v0.0.0-...-90cf950 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleVersion

type ModuleVersion struct {
	Path    string
	Version string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL