value

package
v0.14.5-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeNil valueType = iota
	TypeSingle
	TypeArray
)

Variables

View Source
var Nil = Value{/* contains filtered or unexported fields */}

Functions

This section is empty.

Types

type Value

type Value struct {
	Items []types.TypedValue
	// contains filtered or unexported fields
}

func New

func New(value types.TypedValue) Value

func NewArray

func NewArray(values []types.TypedValue) Value

func NewArrayFromStrings

func NewArrayFromStrings(inputs []string) Value

func NewFromString

func NewFromString(input string) Value

func (Value) IsArray

func (v Value) IsArray() bool

func (Value) Len

func (v Value) Len() int

func (Value) String

func (v Value) String() string

func (Value) Type

func (v Value) Type() types.Type

func (Value) Value

func (v Value) Value() types.TypedValue

func (Value) ValueAt

func (v Value) ValueAt(index int) types.TypedValue

Jump to

Keyboard shortcuts

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