version

package
v0.2.7-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package version exposes the evva SDK's release identity. Downstream apps can log Version on startup or assert against it when their integration depends on a specific evva surface.

The Version constant is the source of truth for the release. BuildStamp is empty by default; release builds can set it via `-ldflags "-X github.com/johnny1110/evva/pkg/version.BuildStamp=..."` to capture a commit hash, build timestamp, or CI run id without touching tracked source.

Index

Constants

View Source
const Version = "0.2.7-beta.1"

Version is the SDK release identifier. Bumped on every tagged release. Pre-1.0 versions carry the `-alpha.N` / `-beta.N` suffix; once Phase 19f completes the surface promise, this drops to a clean semver string.

Variables

View Source
var BuildStamp = ""

BuildStamp is an optional build-identifying string populated at link time via -ldflags. Empty for `go build` / `go run` invocations off the source tree; tagged release binaries carry the commit short hash + build date.

Functions

func Bare

func Bare() string

Bare returns the bare semver without the leading "v" prefix ("0.3.0-alpha.1"). Useful for callers that compose their own tag format (e.g. "release/0.3.0-alpha.1") or fold the version into a JSON field where the `v` prefix would be non-idiomatic.

The build stamp, if set, is appended with "+" — matching the SemVer 2.0 build-metadata syntax: `0.3.0-alpha.1+abc1234`.

func String

func String() string

String returns "vX.Y.Z" (Phase 19f and after) or "vX.Y.Z+<stamp>" when a build stamp is present. The leading "v" matches git tag conventions; use Bare for the unprefixed semver.

Types

This section is empty.

Jump to

Keyboard shortcuts

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