version

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version provides version information for s9s

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version (set by goreleaser at build time)
	Version = "dev"

	// Commit is the git commit hash (set by goreleaser at build time)
	Commit = "unknown"

	// Date is the build date (set by goreleaser at build time)
	Date = "unknown"

	// BuiltBy indicates who built the binary (set by goreleaser at build time)
	BuiltBy = "unknown"
)

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string
	Commit    string
	BuildDate string
	BuiltBy   string
	GoVersion string
	Platform  string
}

Info holds version information

func Get

func Get() Info

Get returns version information

func (*Info) Full

func (i *Info) Full() string

Full returns detailed version information

func (*Info) Short

func (i *Info) Short() string

Short returns just the version number

func (*Info) String

func (i *Info) String() string

String returns a human-readable version string

Jump to

Keyboard shortcuts

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