version

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ProgramName = "tokengen"

Variables

View Source
var Commit, Time, Modified = func() (string, string, string) {
	if info, ok := debug.ReadBuildInfo(); ok {
		var revision string
		var time string
		var modified string
		for _, setting := range info.Settings {
			if setting.Key == "vcs.revision" {
				revision = setting.Value
			}
			if setting.Key == "vcs.time" {
				time = setting.Value
			}
			if setting.Key == "vcs.modified" {
				modified = setting.Value
			}
		}
		return revision, time, modified
	}
	return "", "", ""
}()

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the Cobra Command for Version

func GetInfo

func GetInfo() string

GetInfo returns version information for the peer

Types

This section is empty.

Jump to

Keyboard shortcuts

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