version

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version for appboot
	Version = "0.2.1"
	// BuildTime for appboot
	BuildTime = "2020/06/19"
)
View Source
var DefaultOps = Options{
	Version:   Version,
	BuildTime: BuildTime,
	GoVersion: runtime.Version(),
	Os:        runtime.GOOS,
	Arch:      runtime.GOARCH,
}

DefaultOps default options

Functions

func GetVersion

func GetVersion() string

GetVersion get version string

func GetVersionWithOps

func GetVersionWithOps(options Options) string

GetVersionWithOps get version string with versionOptions

Types

type Options

type Options struct {
	GitCommit string
	Version   string
	BuildTime string
	GoVersion string
	Os        string
	Arch      string
}

Options for appboot

Jump to

Keyboard shortcuts

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