immutable

package
v0.5.9-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 3 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) IsBool added in v0.5.0

func (v Bool) IsBool() bool

func (Bool) IsBytes added in v0.5.0

func (v Bool) IsBytes() bool

func (Bool) IsFloat added in v0.5.0

func (v Bool) IsFloat() bool

func (Bool) IsInt added in v0.5.0

func (v Bool) IsInt() bool

func (Bool) IsList added in v0.5.0

func (v Bool) IsList() bool

func (Bool) IsMap added in v0.5.0

func (v Bool) IsMap() bool

func (Bool) IsString added in v0.5.0

func (v Bool) IsString() bool

func (Bool) PrimitiveHinted

func (v Bool) PrimitiveHinted() interface{}

type Bytes

type Bytes []byte

func (Bytes) IsBool added in v0.5.0

func (v Bytes) IsBool() bool

func (Bytes) IsBytes added in v0.5.0

func (v Bytes) IsBytes() bool

func (Bytes) IsFloat added in v0.5.0

func (v Bytes) IsFloat() bool

func (Bytes) IsInt added in v0.5.0

func (v Bytes) IsInt() bool

func (Bytes) IsList added in v0.5.0

func (v Bytes) IsList() bool

func (Bytes) IsMap added in v0.5.0

func (v Bytes) IsMap() bool

func (Bytes) IsString added in v0.5.0

func (v Bytes) IsString() bool

func (Bytes) PrimitiveHinted

func (v Bytes) PrimitiveHinted() interface{}

type Float

type Float float64

func (Float) IsBool added in v0.5.0

func (v Float) IsBool() bool

func (Float) IsBytes added in v0.5.0

func (v Float) IsBytes() bool

func (Float) IsFloat added in v0.5.0

func (v Float) IsFloat() bool

func (Float) IsInt added in v0.5.0

func (v Float) IsInt() bool

func (Float) IsList added in v0.5.0

func (v Float) IsList() bool

func (Float) IsMap added in v0.5.0

func (v Float) IsMap() bool

func (Float) IsString added in v0.5.0

func (v Float) IsString() bool

func (Float) PrimitiveHinted

func (v Float) PrimitiveHinted() interface{}

type Int

type Int int64

func (Int) IsBool added in v0.5.0

func (v Int) IsBool() bool

func (Int) IsBytes added in v0.5.0

func (v Int) IsBytes() bool

func (Int) IsFloat added in v0.5.0

func (v Int) IsFloat() bool

func (Int) IsInt added in v0.5.0

func (v Int) IsInt() bool

func (Int) IsList added in v0.5.0

func (v Int) IsList() bool

func (Int) IsMap added in v0.5.0

func (v Int) IsMap() bool

func (Int) IsString added in v0.5.0

func (v Int) IsString() bool

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) IsBool added in v0.5.0

func (v List) IsBool() bool

func (List) IsBytes added in v0.5.0

func (v List) IsBytes() bool

func (List) IsFloat added in v0.5.0

func (v List) IsFloat() bool

func (List) IsInt added in v0.5.0

func (v List) IsInt() bool

func (List) IsList added in v0.5.0

func (v List) IsList() bool

func (List) IsMap added in v0.5.0

func (v List) IsMap() bool

func (List) IsString added in v0.5.0

func (v List) IsString() bool

func (List) Iterate

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

func (List) Length

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

func (List) PrimitiveHinted

func (l List) PrimitiveHinted() interface{}

type Map

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

func (Map) IsBool added in v0.5.0

func (v Map) IsBool() bool

func (Map) IsBytes added in v0.5.0

func (v Map) IsBytes() bool

func (Map) IsEmpty added in v0.5.0

func (m Map) IsEmpty() bool

func (Map) IsFloat added in v0.5.0

func (v Map) IsFloat() bool

func (Map) IsInt added in v0.5.0

func (v Map) IsInt() bool

func (Map) IsList added in v0.5.0

func (v Map) IsList() bool

func (Map) IsMap added in v0.5.0

func (v Map) IsMap() bool

func (Map) IsString added in v0.5.0

func (v Map) IsString() bool

func (Map) Iterate

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

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) IsBool added in v0.5.0

func (v String) IsBool() bool

func (String) IsBytes added in v0.5.0

func (v String) IsBytes() bool

func (String) IsFloat added in v0.5.0

func (v String) IsFloat() bool

func (String) IsInt added in v0.5.0

func (v String) IsInt() bool

func (String) IsList added in v0.5.0

func (v String) IsList() bool

func (String) IsMap added in v0.5.0

func (v String) IsMap() bool

func (String) IsString added in v0.5.0

func (v String) IsString() bool

func (String) PrimitiveHinted

func (v String) PrimitiveHinted() interface{}

type Value

type Value interface {
	PrimitiveHinted() interface{}

	IsList() bool
	IsMap() bool
	IsBool() bool
	IsString() bool
	IsInt() bool
	IsFloat() bool
	IsBytes() bool
	// 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