pkg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
}

func Get

func Get() Info

Get 返回详尽的代码库版本信息,用来标明二进制文件由哪个版本的代码构建.

func (Info) String

func (info Info) String() string

String 返回人性化的版本信息字符串.

func (Info) Text

func (info Info) Text() string

Text 将版本信息编码为 UTF-8 格式的文本,并返回.

func (Info) ToJSON

func (info Info) ToJSON() string

Jump to

Keyboard shortcuts

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