Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Name string
Description string
Website string
GitVersion string
GitCommit string
GitTreeState string
BuildDate string
BuiltBy string
// contains filtered or unexported fields
}
Info holds version information for the application. Fields are exported to match the caarlos0/go-version API.
func GetVersionInfo ¶
GetVersionInfo creates a new Info struct pre-filled with build information from debug.BuildInfo, then applies the given options.
type Option ¶
type Option func(*Info)
Option is a function that configures an Info struct.
func WithASCIIName ¶
WithASCIIName sets the ASCII art name.
func WithAppDetails ¶
WithAppDetails sets the application name, description, and website.
Click to show internal directories.
Click to hide internal directories.