expand

package
v1.0.0-beta.228 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expand

type Expand[T Expandable[T]] []T

func (Expand[T]) Clone

func (e Expand[T]) Clone() Expand[T]

func (Expand[T]) Has

func (e Expand[T]) Has(value T) bool

func (Expand[T]) SetOrUnsetIf

func (e Expand[T]) SetOrUnsetIf(condition bool, value T) Expand[T]

SetOrUnsetIf sets the value if the condition is true, otherwise it removes the value if present.

func (Expand[T]) Validate

func (e Expand[T]) Validate() error

func (Expand[T]) With

func (e Expand[T]) With(value T) Expand[T]

func (Expand[T]) Without

func (e Expand[T]) Without(value T) Expand[T]

type Expandable

type Expandable[T any] interface {
	comparable
	Values() []T
}

Jump to

Keyboard shortcuts

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