version

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Author      = "Jon Rogers"
	License     = "MIT License"
	GitHubUser  = "devnullvoid"
	ProjectName = "pvetui"
)

Project constants

Variables

This section is empty.

Functions

func GetBuildDate

func GetBuildDate() (time.Time, error)

GetBuildDate returns the build date as a time.Time

func GetCopyrightYearRange

func GetCopyrightYearRange() string

GetCopyrightYearRange returns a copyright year range (e.g., "2025-2026")

func GetFullVersionString

func GetFullVersionString() string

GetFullVersionString returns a detailed version string

func GetGitHubReleaseURL

func GetGitHubReleaseURL() string

GetGitHubReleaseURL returns the GitHub releases URL

func GetGitHubURL

func GetGitHubURL() string

GetGitHubURL returns the GitHub repository URL

func GetVersionString

func GetVersionString() string

GetVersionString returns a formatted version string

func IsDevBuild

func IsDevBuild() bool

IsDevBuild returns true if this is a development build

Types

type BuildInfo

type BuildInfo struct {
	Version   string
	BuildDate string
	Commit    string
	GoVersion string
	OS        string
	Arch      string
}

BuildInfo contains build-time information

func GetBuildInfo

func GetBuildInfo() *BuildInfo

GetBuildInfo returns the current build information It first checks ldflags-injected values, then falls back to debug.ReadBuildInfo() for version information when installed via `go install`

Jump to

Keyboard shortcuts

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