versionhelper

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arch

func Arch() string

Arch returns cpu arch set at build time usually contains more detain than runtime.GOARCH, such as armv7 instead of arm

func Branch

func Branch() string

Branch name of the source code

func BuildTime

func BuildTime() time.Time

func Commit

func Commit() string

Commit hash of the source code

func GoCompilerPlatform

func GoCompilerPlatform() string

func GoVersion

func GoVersion() string

func NewVersionCmd

func NewVersionCmd(output io.Writer) *cobra.Command

func Tag

func Tag() string

Tag is the tag name from the VCS of source code

func Version

func Version() string

func WorktreeClean

func WorktreeClean() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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