feature

package
v0.260430.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package feature provides experimental feature flag definitions and parsing.

Index

Constants

View Source
const (
	// FeatureCompact enables smart compact for conversation history.
	FeatureCompact = "compact"
)

Variables

View Source
var KnownFeatures = map[string]bool{
	FeatureCompact: true,
}

KnownFeatures is the set of all recognized experimental features.

Functions

func IsEnabled

func IsEnabled(features map[string]bool, feature string) bool

IsEnabled checks if a specific feature is enabled in the features map.

func ParseFeatures

func ParseFeatures(expr string) map[string]bool

ParseFeatures parses a comma-separated string of feature names into a map. Empty values are ignored. Unknown features are silently ignored. Example: "compact,other" -> {"compact": true, "other": true}

Types

This section is empty.

Jump to

Keyboard shortcuts

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