version

package
v0.0.0-...-4fbe3ce Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitVersion = "<UNKNOWN>"
	Ver        = "<UNKNOWN>"
	BuildTime  = "<UNKNOWN>"
	StartTime  = time.Now().Format("2006-01-02 15:04:05")
)

Functions

func GetVersionString

func GetVersionString(serverName string) string

func PrintVersion

func PrintVersion(serverName string)

Types

type Version

type Version struct {
	Ver        string `json:"version"`
	StartTime  string `json:"start_time"`
	GitVersion string `json:"git_version"`
	BuildTime  string `json:"build_time"`
}

func GetVersion

func GetVersion() Version

Jump to

Keyboard shortcuts

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