version

package
v1.5.14 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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