version

package
v1.1.8 Latest Latest
Warning

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

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

Documentation

Overview

Package version provides version information for the PromptKit runtime. Version variables can be overridden at build time using ldflags:

go build -ldflags "-X github.com/AltairaLabs/PromptKit/runtime/version.version=1.0.0"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuildInfo

func GetBuildInfo() []any

GetBuildInfo returns version details as structured slog attributes. This is useful for including version info in log messages.

func GetVersion

func GetVersion() string

GetVersion returns the current version string. Falls back to build info from go modules if version is "dev".

func GetVersionInfo

func GetVersionInfo() string

GetVersionInfo returns detailed version information in the same format as promptarena.

func LogStartup

func LogStartup()

LogStartup logs version information at debug level. This is called by the logger package after initialization.

Types

This section is empty.

Jump to

Keyboard shortcuts

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