version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit() string

Commit returns the commit string for fang.

func Version

func Version() string

Version returns the version string for fang.

Types

type Info

type Info struct {
	Version string
	Commit  string
	Date    string
	BuiltBy string
	IsDirty bool
	GitTag  string
}

Info contains version information.

func Get

func Get() Info

Get returns the current version info.

func (Info) Short

func (i Info) Short() string

Short returns just the version string.

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