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: ? 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

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