Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package version provides centralized version information for Prism.

This package implements the Semantic Versioning 2.0.0 specification (https://semver.org/) for the Prism project. It provides a single source of truth for version information used by all components and binaries in the project.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of Prism.
	// Should be in the format MAJOR.MINOR.PATCH.
	Version = "0.7.2"

	// GitCommit is the git commit hash of the build.
	GitCommit = ""

	// BuildDate is the build date of the build.
	BuildDate = ""

	// GoVersion is the go version used to compile the build.
	GoVersion = ""
)

These variables are populated by the build system.

Functions

func GetCLIVersionInfo

func GetCLIVersionInfo() string

GetCLIVersionInfo returns version info specifically for the CLI component.

func GetDaemonVersionInfo

func GetDaemonVersionInfo() string

GetDaemonVersionInfo returns version info specifically for the daemon component.

func GetVersion

func GetVersion() string

GetVersion returns just the version number.

func GetVersionInfo

func GetVersionInfo() string

GetVersionInfo returns a formatted string with version information.

func SemVer

func SemVer() (major, minor, patch int)

SemVer returns major, minor, and patch versions as integers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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