version

package
v0.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version exposes build metadata injected at link time via -ldflags.

Index

Constants

View Source
const License = "AGPL-3.0-only"

License is the SPDX identifier of the nerdui license.

Variables

View Source
var (
	Version = "dev"
	Commit  = "unknown"
	Date    = "unknown"
	Source  = "https://github.com/pessom/nerdui"
)

These variables are overridden at build time, e.g.:

-X github.com/pessom/nerdui/internal/version.Version=v0.1.0

Source must point to the source code of the running build. AGPL-3.0 section 13 requires offering the corresponding source to users interacting with nerdui over a network, so forks must set it to their own repository.

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:"goVersion"`
	Platform  string `json:"platform"`
	Source    string `json:"source"`
	License   string `json:"license"`
}

Info describes the running nerdui build.

func Get

func Get() Info

Get returns build information for the current binary.

func (Info) String

func (i Info) String() string

String returns a single-line human readable version.

Jump to

Keyboard shortcuts

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