version

package
v0.0.0-...-bd25097 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: AGPL-3.0 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 build identity of the binary. Values are set at link time by scripts/build-release.sh (and the deploy tooling):

go build -ldflags "-X codr.my/codr/internal/version.Tag=v0.1.0 -X ...Commit=abc123"

Index

Constants

This section is empty.

Variables

View Source
var Commit = "unknown"

Commit is the short git commit the binary was built from.

View Source
var Tag = "dev"

Tag is the release tag ("dev" when built without ldflags).

Functions

func String

func String() string

String renders the version line shown by `codr version` and /healthz. A binary built by `go install codr.my/codr/cmd/codr@vX` has no ldflags; it then reports the module version and VCS commit Go recorded.

Types

This section is empty.

Jump to

Keyboard shortcuts

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