version

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version   = "0.0.1"
	GitCommit = "e59e261"
	BuildTime = "unknown"
)

Variables

This section is empty.

Functions

func GetVersionJSON

func GetVersionJSON() string

func GetVersionString

func GetVersionString() string

func IsDev

func IsDev() bool

func IsDirty

func IsDirty() bool

Types

type Info

type Info struct {
	Version    string `json:"version"`
	GitCommit  string `json:"git_commit"`
	BuildTime  string `json:"build_time"`
	GoVersion  string `json:"go_version"`
	GoOS       string `json:"go_os"`
	GoArch     string `json:"go_arch"`
	BuildFlags string `json:"build_flags,omitempty"`
}

func GetVersionInfo

func GetVersionInfo() Info

func (Info) Short

func (i Info) Short() string

func (Info) String

func (i Info) String() string

Jump to

Keyboard shortcuts

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