Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version reports diffx build metadata.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = ""
	Date    = ""
)

Functions

func Number

func Number() string

Number returns the resolved release or development version.

func String

func String() string

String returns the CLI name and available build metadata.

Types

type BuildInfo added in v0.2.4

type BuildInfo struct {
	Version  string
	Commit   string
	Date     string
	Modified bool
}

BuildInfo includes VCS facts from local development builds, whose CLI version deliberately remains "dev". Release linker metadata takes precedence.

func Build added in v0.2.4

func Build() BuildInfo

Jump to

Keyboard shortcuts

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