version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version holds build-time version info injected via ldflags.

Set at compile time:

go build -ldflags "-X github.com/NicolasHaas/gospeak/pkg/version.tag=v1.0.0
  -X github.com/NicolasHaas/gospeak/pkg/version.commit=abc1234
  -X github.com/NicolasHaas/gospeak/pkg/version.date=2026-01-01"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit() string

Commit returns the short commit SHA.

func Date

func Date() string

Date returns the build date.

func Full

func Full() string

Full returns "tag (commit) built date" or a sensible fallback.

func String

func String() string

String returns a human-readable version string.

Tagged:   "v0.2.0"
Untagged: "abc1234"
Dev:      "dev"

func Tag

func Tag() string

Tag returns the git tag, or empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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