Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.0.0-...-636708e Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package version reports the version of the gt build.

Index

Constants

This section is empty.

Variables

View Source
var Tags = ""

Tags holds the build tags used

View Source
var Version = "development"

Version holds the current gt version. This is set at build time via ldflags. If the Version is moved to another package or name changed, build flags in .goreleaser.yaml or Makefile need to be updated accordingly.

Functions

func Current

func Current() string

Current returns the version of this build: the ldflags stamp, else the module version recorded by go install, else "development".

func Format

func Format() string

Format describes the build like gh version: the version and its date, the release notes of a release, and the Go version and build tags:

gt version 1.0.0 (2026-10-01)
https://gitea.com/gitea/cli/releases/tag/v1.0.0
built with go1.27.2

Types

This section is empty.

Jump to

Keyboard shortcuts

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