values

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Elements

func Elements(value any) ([]any, bool)

Elements returns JSON-like list elements from []any or any Go slice/array.

func FilterValues

func FilterValues(value any, op contracts.Operator) ([]string, error)

FilterValues converts a raw filter value into the string domain used by the current storage indexes for the supplied operator.

func ListValues

func ListValues(value any) ([]string, error)

ListValues converts a raw list/array filter value into scalar strings.

func NormalizeEqualityValues

func NormalizeEqualityValues(raw []string, lower bool) []string

NormalizeEqualityValues trims, optionally lowercases, and de-duplicates values while preserving first-seen order.

func Scalar

func Scalar(value any) string

Scalar converts a filter scalar into the string domain used by the current storage indexes. JSON null / Go nil is not a literal ID or source; treat it like a blank value so equality filters fail closed instead of searching for fmt's "<nil>" sentinel text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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