version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package version provides version information for the INIQ application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBuildDate

func FormatBuildDate(t time.Time) string

FormatBuildDate formats the build date as RFC3339

func IsDevelopment

func IsDevelopment() bool

IsDevelopment returns true if the current version is a development version

func IsRelease

func IsRelease() bool

IsRelease returns true if the current version is a release version

func ShortString

func ShortString() string

ShortString returns a short string representation of version information

func String

func String() string

String returns a string representation of version information

Types

type Info

type Info struct {
	// Version is the semantic version
	Version string
	// BuildDate is the date when the binary was built
	BuildDate string
	// Commit is the git commit hash
	Commit string
	// GoVersion is the version of Go used to build the binary
	GoVersion string
	// Platform is the OS/arch combination
	Platform string
	// BuildInfo contains additional build information
	BuildInfo *debug.BuildInfo
}

Info contains version information

func Get

func Get() Info

Get returns version information

Jump to

Keyboard shortcuts

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