version

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 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 carries the build identity of the workloom CLI.

The identity comes from, in priority order:

  1. -ldflags -X overrides (release pipeline), then

  2. the module version stamped by the Go toolchain: the release tag for `go install …@vX.Y.Z`, or a pseudo-version (v0.1.8-0.20260921…-abc) for a plain repository `go build` — Go fills debug.ReadBuildInfo().Main.Version whenever VCS metadata exists, then

  3. the development marker, for source exports without VCS metadata (where Main.Version is "(devel)").

The commit short hash (from VCS stamping) is appended whenever known.

go build -ldflags "-X github.com/JAYY513/Workloom/internal/version.Version=0.1.0 \
                   -X github.com/JAYY513/Workloom/internal/version.Commit=$(git rev-parse --short HEAD)" \
         -o bin/workloom ./cmd/workloom

Index

Constants

This section is empty.

Variables

View Source
var Commit = "unknown"

Commit is the source revision this binary was built from, when known.

View Source
var Version = devMarker

Version is the semantic version of this build, when injected at build time.

Functions

func String

func String() string

String renders the single-line identity printed by `workloom --version`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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