Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct {
// contains filtered or unexported fields
}
func GetBuildInfo ¶
GetBuildInfo returns build related information of the binary or an error.
func (*BuildInfo) GetArchitecture ¶
GetArchitecture returns the current architecture.
func (*BuildInfo) GetCommitSHA ¶
GetCommitSha returns the current commitSha (version). The returned string can be empty if binary was not built using VCS.
func (*BuildInfo) GetGoVersion ¶
GetGoVersion returns the version of Go that produced the current binary.
func (*BuildInfo) GetOperatingSystem ¶
GetOperatingSystem returns the current Operating System.
func (*BuildInfo) GetVCSTime ¶
GetVCSTime returns the current commit time. The returned string can be empty if binary was not built using VCS.
func (*BuildInfo) GetVCSType ¶
GetVCSType returns the Version Control System type. The returned string can be empty if binary was not built using VCS.
Click to show internal directories.
Click to hide internal directories.