buildinformation

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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

func GetBuildInfo() (*BuildInfo, error)

GetBuildInfo returns build related information of the binary or an error.

func (*BuildInfo) GetArchitecture

func (b *BuildInfo) GetArchitecture() string

GetArchitecture returns the current architecture.

func (*BuildInfo) GetCommitSHA

func (b *BuildInfo) GetCommitSHA() string

GetCommitSha returns the current commitSha (version). The returned string can be empty if binary was not built using VCS.

func (*BuildInfo) GetGoVersion

func (b *BuildInfo) GetGoVersion() string

GetGoVersion returns the version of Go that produced the current binary.

func (*BuildInfo) GetOperatingSystem

func (b *BuildInfo) GetOperatingSystem() string

GetOperatingSystem returns the current Operating System.

func (*BuildInfo) GetVCSTime

func (b *BuildInfo) GetVCSTime() string

GetVCSTime returns the current commit time. The returned string can be empty if binary was not built using VCS.

func (*BuildInfo) GetVCSType

func (b *BuildInfo) GetVCSType() string

GetVCSType returns the Version Control System type. The returned string can be empty if binary was not built using VCS.

Jump to

Keyboard shortcuts

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