node

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupFieldType added in v0.4.2

func LookupFieldType(holder string, ownerType reflect.Type) func(name string) *xunsafe.Field

Types

type Binding added in v0.4.2

type Binding struct {
	Values       []*Value
	Groups       []*Group
	Count        int
	ContextField *xunsafe.Field
}

func (*Binding) AddPlaceholder added in v0.4.2

func (b *Binding) AddPlaceholder()

func (*Binding) AddPlaceholders added in v0.4.2

func (b *Binding) AddPlaceholders(count int) *Group

func (*Binding) Expand added in v0.4.2

func (b *Binding) Expand(expr string, values []interface{}) (string, error)

type Group added in v0.4.2

type Group struct {
	Name      string
	Type      reflect.Type
	From      int
	To        int
	InInts    *in.Ints
	InStrings *in.Strings
}

Group represents a group of values in a binding.

func (*Group) Count added in v0.4.2

func (g *Group) Count() int

Count returns the number of values in a group.

type Selector

type Selector struct {
	Name     string
	Criteria node.Node
	Holder   string
	Child    *Selector
}

Selector represents a selector

type Value added in v0.4.2

type Value struct {
	Position    int
	Placeholder bool
	Value       interface{}
}

Value represents a value in a binding.

type Values added in v0.4.2

type Values struct {
	Bindings *Binding
	Values   []interface{}
}

Values represents a set of values and a binding.

Jump to

Keyboard shortcuts

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