Documentation ¶
Overview ¶
Package version contains build information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Information ¶
type Information struct { Version string `json:"version,omitempty"` Revision string `json:"revision,omitempty"` Branch string `json:"branch,omitempty"` BuildUser string `json:"build_user,omitempty"` BuildDate string `json:"build_date,omitempty"` GoVersion string `json:"go_version,omitempty"` Dependencies map[string]string `json:"dependencies,omitempty"` }
Information holds app version info.
func Module ¶ added in v0.2.28
func Module(path string) Information
Module returns module version info.
func (Information) String ¶
func (i Information) String() string
String return version information as string.
func (Information) Values ¶
func (i Information) Values() map[string]string
Values return version information as string map.
Click to show internal directories.
Click to hide internal directories.