Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const NightlyVersion = "nightly"

NightlyVersion represents latest build of master branch.

Variables

View Source
var (
	// TiUPVerMajor is the major version of TiUP
	TiUPVerMajor = 1
	// TiUPVerMinor is the minor version of TiUP
	TiUPVerMinor = 3
	// TiUPVerPatch is the patch version of TiUP
	TiUPVerPatch = 7
	// TiUPVerName is alternative name of the version
	TiUPVerName = "tiup"
	// GitHash is the current git commit hash
	GitHash = "Unknown"
	// GitBranch is the current git branch name
	GitBranch = "Unknown"
)

Functions

This section is empty.

Types

type TiUPBuild

type TiUPBuild struct {
	GitHash   string `json:"gitHash"`
	GitBranch string `json:"gitBranch"`
	GoVersion string `json:"goVersion"`
}

TiUPBuild is the info of building environment

func NewTiUPBuildInfo

func NewTiUPBuildInfo() *TiUPBuild

NewTiUPBuildInfo creates a TiUPBuild object

func (*TiUPBuild) String

func (v *TiUPBuild) String() string

String converts TiUPBuild to a string

type TiUPVersion

type TiUPVersion struct {
	// contains filtered or unexported fields
}

TiUPVersion is the semver of TiUP

func NewTiUPVersion

func NewTiUPVersion() *TiUPVersion

NewTiUPVersion creates a TiUPVersion object

func (*TiUPVersion) Name

func (v *TiUPVersion) Name() string

Name returns the alternave name of TiUPVersion

func (*TiUPVersion) SemVer

func (v *TiUPVersion) SemVer() string

SemVer returns TiUPVersion in semver format

func (*TiUPVersion) String

func (v *TiUPVersion) String() string

String converts TiUPVersion to a string

Jump to

Keyboard shortcuts

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