version

package
v0.267.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version holds build information, injected at release time via -ldflags. Defaults are placeholders for `go run`/`go install` builds.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version (e.g. v1.2.3), set by goreleaser.
	Version = "dev"
	// Commit is the short git SHA the binary was built from.
	Commit = "none"
	// Date is the build timestamp (RFC3339).
	Date = "unknown"
)

Functions

func Resolved

func Resolved() string

Resolved returns the version string, preferring the ldflags-set value and falling back to the module version for `go install`/`go run` builds. Use it wherever the version is reported (banner, `--json`) so every surface agrees.

func Server added in v0.267.0

func Server() string

Server returns the version of the embedded OpenFGA server, read from the module list the Go toolchain records in the binary. Builds without that information report "unknown".

func String

func String() string

String returns a one-line, human-readable build description. The server version is qualified as "embedded" because it describes the OpenFGA library linked into this binary for `ofga model test`, not the server the active profile points at.

Types

This section is empty.

Jump to

Keyboard shortcuts

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