structvalidate

package
v1.124.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type_String uint16 = iota
	Type_Integer
	Type_Float
	Type_Bool
)

Variables

View Source
var (
	Command_IsType               = Command{1, 0}
	Command_Exists               = Command{2, 0}
	Command_ExistsNonEmptyString = Command{2, 5}
	Command_Absent               = Command{3, 0}
	Command_EqualsEitherValue    = Command{4, 0}
	Command_ArrayContainsEither  = Command{5, 0}
	Command_ArrayContainsAll     = Command{6, 0}
)

Functions

This section is empty.

Types

type Command

type Command [2]uint8

type Instruction

type Instruction struct {
	Id             string
	Command        Command // program -> instruction -> command
	Path           []string
	Type           uint16
	Values         []any
	FloatPrecision float64
}

func (*Instruction) AreEqual_typeAgnostic added in v1.124.0

func (i *Instruction) AreEqual_typeAgnostic(v1 reflect.Value, vE any) bool

func (*Instruction) Execute

func (instr *Instruction) Execute(s any) (err error)

Jump to

Keyboard shortcuts

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