version

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 2 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 {
	Version   string
	GitCommit string
	BuildTime string
	GoVersion string
}

Info contains version information

func Get

func Get() Info

Get returns version information, attempting to detect from build info if not set by ldflags

func (Info) Detailed

func (i Info) Detailed() string

Detailed returns a detailed version string with all information

func (Info) String

func (i Info) String() string

String returns a formatted version string

Jump to

Keyboard shortcuts

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