version

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 2 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 release version. tagpr updates it.

Index

Constants

View Source
const Version = "2.1.0"

Version is the current release.

Variables

View Source
var Source string

Source is "release" in the builds the release workflow makes, set at link time by GoReleaser, and empty in any other build. It is not state: no code writes it. Only a release build looks for newer releases.

Functions

func IsRelease

func IsRelease() bool

IsRelease reports whether this build is one the release workflow made.

func String

func String() string

String is the version with the commit it was built from, when the build knows it: a build in a clone does. go install does not, but it tells the version of the module installed, a tag or one naming the commit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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