elements

package
v0.0.0-...-7373d6a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElementValue

type ElementValue struct {
	Value interface{}
	Type  types.Type
	IsNaN bool

	Err error
}

func (ElementValue) Bool

func (element ElementValue) Bool() (bool, error)

func (ElementValue) Compare

func (element ElementValue) Compare(cond *condition.CondValue) (result bool, err error)

func (ElementValue) EvaluateCondition

func (element ElementValue) EvaluateCondition(expr condition.ExprAST) bool

func (ElementValue) Float

func (element ElementValue) Float() (float64, error)

func (ElementValue) Int

func (element ElementValue) Int() (int64, error)

func (ElementValue) Interface

func (element ElementValue) Interface() (interface{}, error)

func (ElementValue) MustBool

func (element ElementValue) MustBool(args ...bool) bool

func (ElementValue) MustFloat

func (element ElementValue) MustFloat(args ...float64) float64

func (ElementValue) MustInt

func (element ElementValue) MustInt(args ...int64) int64

func (ElementValue) MustInterface

func (element ElementValue) MustInterface(args ...interface{}) interface{}

func (ElementValue) MustString

func (element ElementValue) MustString(args ...string) string

func (ElementValue) String

func (element ElementValue) String() (string, error)

type Elements

type Elements interface {
	Type() types.Type
	String() string
	Len() int
	Copy() (newElements Elements)
	Subset(index.IndexInt) (newElements Elements, err error)
	IsNaN() []bool
	Location(int) (ElementValue, error)
	Swap(i, j int)
	Append(copy bool, values ...interface{}) (newElements Elements, err error)
}

Jump to

Keyboard shortcuts

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