version

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version is the single source of truth for RuntimePulse's version. Release builds inject the git tag at link time:

-X github.com/tufantunc/RuntimePulse/internal/version.Version=1.0.0

Source builds fall back to VCS metadata from the Go build info, so "which commit is this?" is always answerable.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is "dev" unless overwritten by a release build's ldflags.

Functions

func IsDev

func IsDev() bool

IsDev reports whether this is a non-release build. Used to suppress the client/daemon mismatch warning for source builds.

func String

func String() string

String returns the human-facing version: the injected release version, or "dev (<short-rev>[+dirty])" for source builds, or plain "dev" when no VCS info exists (test binaries).

Types

This section is empty.

Jump to

Keyboard shortcuts

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