version

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevelopmentVersion = "dev"
)

Variables

View Source
var (
	ProductVersion = DevelopmentVersion
	CommitHash     = ""
	BuildTimestamp = ""
)

Functions

This section is empty.

Types

type MyTime

type MyTime struct {
	*time.Time
}

func (*MyTime) MarshalJSON

func (t *MyTime) MarshalJSON() ([]byte, error)

func (*MyTime) UnmarshalJSON

func (t *MyTime) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in RFC 3339 format.

type VersionOutput

type VersionOutput struct {
	Version    string  `json:"version"`
	CommitHash string  `json:"commitHash,omitempty"`
	BuildTime  *MyTime `json:"buildTimestamp,omitempty"`
}

func Version

func Version() VersionOutput

Jump to

Keyboard shortcuts

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