version

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package version holds the build-time identity of the ctx binary.

The vars below default to a "dev" identity and are overridden at release build time via -ldflags, e.g.:

go build -ldflags "\
  -X github.com/sugihAF/contexo/internal/version.Version=1.3.0 \
  -X github.com/sugihAF/contexo/internal/version.Commit=abc1234 \
  -X github.com/sugihAF/contexo/internal/version.Date=2026-06-02"

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version without a leading "v" (e.g. "1.3.0"),
	// or "dev" for an un-stamped build (`go build`, `go install`).
	Version = "dev"
	// Commit is the short git SHA the binary was built from.
	Commit = "none"
	// Date is the build date (RFC3339 or YYYY-MM-DD).
	Date = "unknown"
)

Functions

func Full

func Full() string

Full returns a human-readable identity line, e.g. "ctx 1.3.0 (abc1234, 2026-06-02)".

func IsDevBuild

func IsDevBuild() bool

IsDevBuild reports whether this binary was built without release stamping. Self-update and the update nudge both refuse to act on dev builds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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