version

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package version exposes the anna binary version.

The Version variable is set via -ldflags="-X github.com/vaayne/anna/internal/version.Version=..." during release builds. At dev-build time it defaults to "dev".

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the anna build version. Set via ldflags.

Functions

func IsDev

func IsDev() bool

IsDev reports whether the current build is a dev build (not a tagged release). Tagged releases set Version to a semver like "0.1.0" or "v0.1.0"; dev builds produce values like "dev" or "v0.1.0-5-gabcdef-dirty".

Types

This section is empty.

Jump to

Keyboard shortcuts

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