version

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package version provides information about the version of the application. It includes the version string, commit hash, and timestamp. The package also defines a struct `Info` that represents the version information. The `newInfo` function creates a new `Info` instance with the provided application name. The `String` method of the `Info` struct returns a formatted string representation of the version information. The package also initializes the `Version` variable with a default version string if it is empty.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Version FIXMEDOC
	Version = ""
	// Commit FIXMEDOC
	Commit = ""
	// Timestamp FIXMEDOC
	Timestamp = ""
)
View Source
var VersionInfo = newInfo(filepath.Base(os.Args[0]))

VersionInfo FIXMEDOC

Functions

This section is empty.

Types

type Info

type Info struct {
	Application   string `json:"Application"`
	VersionString string `json:"VersionString"`
	Commit        string `json:"Commit"`
	Date          string `json:"Date"`
}

Info FIXMEDOC

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