version

package
v0.1.7-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version provides CLI version information.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "v0.0.0"
	Commit  = "unknown"
	Date    = "unknown"
)

Version is the CLI version string.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	Date      string `json:"date"`
	GoVersion string `json:"go_version"`
	OS        string `json:"os"`
	Arch      string `json:"arch"`
}

Info contains version and build information.

func Get

func Get() Info

Get returns the current version information.

func (Info) Short

func (i Info) Short() string

Short returns the version string.

func (Info) String

func (i Info) String() string

Jump to

Keyboard shortcuts

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