version

package
v0.0.0-...-f8b7a73 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionMajor = 0          //当前版本的主要版本组件
	VersionMinor = 3          //当前版本的次要版本组件
	VersionPatch = 10         //当前版本的补丁版本组件
	VersionMeta  = "unstable" //要附加到版本字符串的版本元数据
)

Variables

View Source
var Version = func() string {
	return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
}()

version保存文本版本字符串。

View Source
var VersionWithMeta = func() string {
	v := Version
	if VersionMeta != "" {
		v += "-" + VersionMeta
	}
	return v
}()

versionWithMeta保存包含元数据的文本版本字符串。

Functions

func ArchiveVersion

func ArchiveVersion(gitCommit string) string

archiveversion保存用于swarm存档的文本版本字符串。 例如,“0.3.0-DEA1CE05”用于稳定释放,或 “0.3.1-不稳定-21C059B6”用于不稳定释放

func VersionWithCommit

func VersionWithCommit(gitCommit string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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