version

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version exposes the release tag stamped into the binary at build time via -ldflags "-X github.com/1995parham/natsie/internal/version.Version=vX.Y.Z".

Local `go build` leaves Version as "dev"; the CI Docker image build passes the pushed tag through --build-arg VERSION=$TAG and bakes it into the binary. Falls back to carlmjohnson/versioninfo's VCS info when ldflag is unset so `natsie --version` always reports something.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is overridden at link time. Do not change at runtime.

Functions

func Short

func Short() string

Short returns the release tag if set, otherwise the VCS short hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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