condition

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 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 Condition

type Condition struct {
	Type ConditionType
	Args []string
}

func NewCondition

func NewCondition(conditionString string) (condition Condition, err error)

func (Condition) ApplyCondition

func (c Condition) ApplyCondition(id string, input string) bool

type ConditionType

type ConditionType uint
const (
	ConditionTypeInvalid   ConditionType = iota
	ConditionTypeUnique    ConditionType = iota
	ConditionTypeHasPrefix ConditionType = iota
	ConditionTypeHasSuffix ConditionType = iota
	ConditionTypeIsNumeric ConditionType = iota
	ConditionTypeIsBoolean ConditionType = iota
	ConditionTypeMatches   ConditionType = iota
)

func ConditionTypeFromString

func ConditionTypeFromString(input string) ConditionType

func (ConditionType) IsValid

func (c ConditionType) IsValid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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