version

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = ""

Version is the current version of the application. This can be set at build time using ldflags: -ldflags="-X github.com/WT-In/dbn-go/internal/version.Version=v1.0.0"

Functions

func Get

func Get() string

Get returns the version string, including build info if available.

func String

func String(name string) string

String returns a fully formatted version and build summary.

Types

type Info

type Info struct {
	Name     string `json:"name"`
	Version  string `json:"version"`
	Revision string `json:"revision,omitempty"`
}

Info holds all version-related metadata.

func GetInfo

func GetInfo(name string) Info

GetInfo returns a structured Info object.

Jump to

Keyboard shortcuts

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