version

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 0 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 holds the build identity of the binary.

The values are placeholders in a plain `go build` and are set at link time, so that a running instance can say which build it is:

go build -ldflags "-X github.com/altnovatrail/api/internal/version.Version=v0.1.0 ..."

The symbol path is spelled out because a wrong one is silent: the linker writes nothing, the build succeeds, and the binary reports "dev" forever. So the path is checked by linking a program with it and reading every value back.

Index

Constants

This section is empty.

Variables

View Source
var Commit = "unknown"

Commit is the abbreviated hash of the git commit the binary was built from.

View Source
var Date = "unknown"

Date is when the binary was built, in RFC 3339, or "unknown" when the build did not say.

View Source
var Version = "dev"

Version is the release or tag the binary was built from. A build between tags says how far past one it is, and whether its tree held changes.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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