immutable

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool bool

func (Bool) Primitive

func (v Bool) Primitive() interface{}

func (Bool) PrimitiveHinted

func (v Bool) PrimitiveHinted() interface{}

type Bytes

type Bytes []byte

func (Bytes) Primitive

func (v Bytes) Primitive() interface{}

func (Bytes) PrimitiveHinted

func (v Bytes) PrimitiveHinted() interface{}

type Float

type Float float64

func (Float) Primitive

func (v Float) Primitive() interface{}

func (Float) PrimitiveHinted

func (v Float) PrimitiveHinted() interface{}

type Int

type Int int64

func (Int) Primitive

func (v Int) Primitive() interface{}

func (Int) PrimitiveHinted

func (v Int) PrimitiveHinted() interface{}

type List

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

func (List) Append

func (l List) Append(v Value) List

func (List) Iterate

func (l List) Iterate(f func(v Value))

func (List) Length

func (l List) Length() (n int)

func (List) Primitive

func (l List) Primitive() interface{}

func (List) PrimitiveHinted

func (l List) PrimitiveHinted() interface{}

type Map

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

func (Map) Iterate

func (m Map) Iterate(f func(k string, v Value))

func (Map) Primitive

func (m Map) Primitive() interface{}

func (Map) PrimitiveHinted

func (m Map) PrimitiveHinted() interface{}

func (Map) Set

func (m Map) Set(k string, v Value) Map

func (Map) Value

func (m Map) Value(k string) Value

type String

type String string

func (String) Primitive

func (v String) Primitive() interface{}

func (String) PrimitiveHinted

func (v String) PrimitiveHinted() interface{}

type Value

type Value interface {
	Primitive() interface{}
	PrimitiveHinted() interface{}
	// contains filtered or unexported methods
}

func AnyToValue

func AnyToValue(k string, a interface{}) Value

Jump to

Keyboard shortcuts

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