version

package
v0.0.0-...-52fa7fc Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version returns version string

Types

type Info

type Info struct {
	GitVersion   string    `json:"gitVersion"`
	GitCommit    string    `json:"gitCommit"`
	GitTreeState string    `json:"gitTreeState"`
	GitTime      time.Time `json:"gitTime"`
	BuildDate    string    `json:"buildDate"`
	GoVersion    string    `json:"goVersion"`
	Compiler     string    `json:"compiler"`
	Platform     string    `json:"platform"`
	Race         bool      `json:"race"`
}

store information about build and version

func Get

func Get() Info

Get returns initialized Info object

func (Info) Pretty

func (i Info) Pretty() string

Pretty returns pretty string with version and build information

func (Info) PrettyColorful

func (i Info) PrettyColorful() string

Pretty returns pretty string with version and build information with colors

func (Info) String

func (i Info) String() string

String returns Go-like struture as string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳