version

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GitVersion 版本号
	GitVersion = "v0.0.0-master+$Format:%h$"
	// BuildDate 构建日期
	BuildDate = "1970-01-01T00:00:00Z"
	// GitCommit 提交哈希
	GitCommit = "$Format:%H$"
	// GitTreeState 树状态
	GitTreeState = ""
)

Functions

This section is empty.

Types

type Info

type Info struct {
	GitVersion   string `json:"gitVersion"`
	GitCommit    string `json:"gitCommit"`
	GitTreeState string `json:"gitTreeState"`
	BuildDate    string `json:"buildDate"`
	GoVersion    string `json:"goVersion"`
	Compiler     string `json:"compiler"`
	Platform     string `json:"platform"`
}

Info 版本信息

func Get

func Get() Info

Get 返回版本信息

func (Info) String

func (info Info) String() string

String 返回版本信息字符串

func (Info) Text

func (info Info) Text() ([]byte, error)

Text 返回版本信息文本

func (Info) ToJSON

func (info Info) ToJSON() string

ToJSON 返回版本信息JSON

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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