version

package
v0.0.0-...-120110f Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version 版本号
	Version = "dev"
	// Commit Git 提交 hash
	Commit = "unknown"
	// BuildDate 构建日期
	BuildDate = "unknown"
	// Branch Git 分支名
	Branch = ""
)

auto set by build system - can be overridden via ldflags

Functions

func Full

func Full() string

Full 返回完整的版本信息

func GetVersionInfo

func GetVersionInfo() *versionkit.Info

GetVersionInfo 返回版本信息

func String

func String() 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