version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version exposes the konareef build version.

The value is injected at release-build time via

-ldflags "-X github.com/digitsu/konareef/internal/version.version=v0.1.0"

(goreleaser does this automatically). Absent that injection, String() falls back to the Go module version recorded in the binary's build info, which `go install github.com/digitsu/konareef@vX.Y.Z` populates from the VCS tag. A plain `go build` of a working tree reports "dev".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String() string

String returns the konareef version string.

Precedence:

  1. the ldflags-injected value (release binaries), else
  2. the module version from the embedded build info (`go install m@vX.Y.Z`), ignoring the placeholder "(devel)", else
  3. "dev" (a plain `go build` of a working tree).

It never returns an empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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