feature

package
v0.260514.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MPL-2.0 Imports: 1 Imported by: 0 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 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