version

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version contains the version information for the CLI

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version injected at build time
	Version = "local"
	// Commit injected at build time
	Commit = "unknown"
	// BuildDate injected at build time
	BuildDate = "unknown"
)

Functions

This section is empty.

Types

type V

type V struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildDate string `json:"buildDate"`
}

V Version JSON struct

func GetVersion

func GetVersion() V

GetVersion returns the version information

func (V) String

func (v V) String() string

String returns the version information as a string

func (V) UserAgent

func (v V) UserAgent() string

UserAgent returns the user agent string

Jump to

Keyboard shortcuts

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