values

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolValue

type BoolValue struct {
	// contains filtered or unexported fields
}

func NewBoolValue

func NewBoolValue(value bool) *BoolValue

func (*BoolValue) Data

func (v *BoolValue) Data() any

func (*BoolValue) Equals

func (v *BoolValue) Equals(other Value) bool

func (*BoolValue) LessThan

func (v *BoolValue) LessThan(other Value) bool

func (*BoolValue) String

func (v *BoolValue) String() string

func (*BoolValue) Type

func (v *BoolValue) Type() types.Type

type DateValue

type DateValue struct {
	// contains filtered or unexported fields
}

func NewDateValue

func NewDateValue(value *data.Date) *DateValue

func (*DateValue) Data

func (v *DateValue) Data() any

func (*DateValue) Equals

func (v *DateValue) Equals(other Value) bool

func (*DateValue) LessThan

func (v *DateValue) LessThan(other Value) bool

func (*DateValue) String

func (v *DateValue) String() string

func (*DateValue) Type

func (v *DateValue) Type() types.Type

type ErrorValue

type ErrorValue struct {
	// contains filtered or unexported fields
}

func NewErrorValue

func NewErrorValue(value string) *ErrorValue

func (*ErrorValue) Data

func (v *ErrorValue) Data() any

func (*ErrorValue) Equals

func (v *ErrorValue) Equals(other Value) bool

func (*ErrorValue) LessThan

func (v *ErrorValue) LessThan(other Value) bool

func (*ErrorValue) String

func (v *ErrorValue) String() string

func (*ErrorValue) Type

func (v *ErrorValue) Type() types.Type

type IntValue

type IntValue struct {
	// contains filtered or unexported fields
}

func NewIntValue

func NewIntValue(value int64) *IntValue

func (*IntValue) Data

func (v *IntValue) Data() any

func (*IntValue) Equals

func (v *IntValue) Equals(other Value) bool

func (*IntValue) LessThan

func (v *IntValue) LessThan(other Value) bool

func (*IntValue) String

func (v *IntValue) String() string

func (*IntValue) Type

func (v *IntValue) Type() types.Type

type ListValue

type ListValue struct {
	// contains filtered or unexported fields
}

func NewListValue

func NewListValue(type_ types.Type) *ListValue

func (*ListValue) AddValue

func (v *ListValue) AddValue(value Value)

func (*ListValue) Data

func (v *ListValue) Data() any

func (*ListValue) Equals

func (v *ListValue) Equals(other Value) bool

func (*ListValue) LessThan

func (v *ListValue) LessThan(other Value) bool

func (*ListValue) String

func (v *ListValue) String() string

func (*ListValue) Type

func (v *ListValue) Type() types.Type

type MapValue

type MapValue struct {
	// contains filtered or unexported fields
}

func NewMapValue

func NewMapValue(keyType, valueType types.Type) *MapValue

func (*MapValue) Data

func (v *MapValue) Data() any

func (*MapValue) Equals

func (v *MapValue) Equals(other Value) bool

func (*MapValue) LessThan

func (v *MapValue) LessThan(other Value) bool

func (*MapValue) Set

func (v *MapValue) Set(key Value, value Value)

func (*MapValue) String

func (v *MapValue) String() string

func (*MapValue) Type

func (v *MapValue) Type() types.Type

type RealValue

type RealValue struct {
	// contains filtered or unexported fields
}

func NewRealValue

func NewRealValue(value float64) *RealValue

func (*RealValue) Data

func (v *RealValue) Data() any

func (*RealValue) Equals

func (v *RealValue) Equals(other Value) bool

func (*RealValue) LessThan

func (v *RealValue) LessThan(other Value) bool

func (*RealValue) String

func (v *RealValue) String() string

func (*RealValue) Type

func (v *RealValue) Type() types.Type

type StringValue

type StringValue struct {
	// contains filtered or unexported fields
}

func NewStringValue

func NewStringValue(value string) *StringValue

func (*StringValue) Data

func (v *StringValue) Data() any

func (*StringValue) Equals

func (v *StringValue) Equals(other Value) bool

func (*StringValue) LessThan

func (v *StringValue) LessThan(other Value) bool

func (*StringValue) String

func (v *StringValue) String() string

func (*StringValue) Type

func (v *StringValue) Type() types.Type

type TimeValue

type TimeValue struct {
	// contains filtered or unexported fields
}

func NewTimeValue

func NewTimeValue(value *data.Time) *TimeValue

func (*TimeValue) Data

func (v *TimeValue) Data() any

func (*TimeValue) Equals

func (v *TimeValue) Equals(other Value) bool

func (*TimeValue) LessThan

func (v *TimeValue) LessThan(other Value) bool

func (*TimeValue) String

func (v *TimeValue) String() string

func (*TimeValue) Type

func (v *TimeValue) Type() types.Type

type Value

type Value interface {
	Data() any
	Type() types.Type

	Equals(other Value) bool
	LessThan(other Value) bool
	String() string
}

Jump to

Keyboard shortcuts

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