version

package
v0.1.119 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package version reports the Līdza build version.

Index

Constants

View Source
const ModulePath = "github.com/agim/lidza"

ModulePath is the framework's module path.

Variables

View Source
var Version = ""

Version is set at build time with -ldflags "-X github.com/agim/lidza/pkg/version.Version=v0.1.0". When unset, the module version from the Go build info is used, which is what `go install github.com/agim/lidza/cmd/lidza@latest` records.

Functions

func Module

func Module() string

Module returns the version of the framework module to fetch for an app created by this build (`go get github.com/agim/lidza@<Module>`): the tag or pseudo-version this CLI was built from, without a "+dirty" suffix, or "" when the build carries no version.

func String

func String() string

String returns the version to show to users: the ldflags value, else the module version from build info, else "dev". A build from a checkout carries the version Go stamps from git: the tag when the commit is tagged, a pseudo-version with the commit otherwise, "+dirty" appended for uncommitted changes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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