types

package
v2.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = stderrors.New("not found")
)

...

Functions

func Equals

func Equals(leftValue interface{}, rightValue interface{}) (bool, error)

Equals ...

func GetDeepValue

func GetDeepValue(value interface{}) (interface{}, error)

GetDeepValue ...

Types

type Boolean

type Boolean = float64

Boolean ...

This type should be an alias.

const (
	False Boolean = iota
	True
)

...

func NegateBoolean

func NegateBoolean(value Boolean) Boolean

NegateBoolean ...

func NewBoolean

func NewBoolean(value interface{}) (Boolean, error)

NewBoolean ...

func NewBooleanFromGoBool

func NewBooleanFromGoBool(value bool) Boolean

NewBooleanFromGoBool ...

type ComparisonResult

type ComparisonResult int

ComparisonResult ...

const (
	Less ComparisonResult = iota
	Equal
	Greater
)

...

func Compare

func Compare(leftValue interface{}, rightValue interface{}) (ComparisonResult, error)

Compare ...

type HashTable

type HashTable map[interface{}]interface{}

HashTable ...

func (HashTable) Copy

func (table HashTable) Copy() HashTable

Copy ...

func (HashTable) DeepMap

func (table HashTable) DeepMap() (map[string]interface{}, error)

DeepMap ...

func (HashTable) Equals

func (table HashTable) Equals(sample HashTable) (bool, error)

Equals ...

func (HashTable) Item

func (table HashTable) Item(key interface{}) (interface{}, error)

Item ...

func (HashTable) Keys

func (table HashTable) Keys() []interface{}

Keys ...

func (HashTable) Merge

func (table HashTable) Merge(anotherTable HashTable) HashTable

Merge ...

func (HashTable) Size

func (table HashTable) Size() int

Size ...

func (HashTable) With

func (table HashTable) With(key interface{}, value interface{}) (HashTable, error)

With ...

type Nil

type Nil struct{}

Nil ...

func (Nil) MarshalJSON

func (nilValue Nil) MarshalJSON() (text []byte, err error)

MarshalJSON ...

func (Nil) String

func (Nil) String() string

String ...

type Pair

type Pair struct {
	Head interface{}
	Tail *Pair
}

Pair ...

func NewPairFromSlice

func NewPairFromSlice(items []interface{}) *Pair

NewPairFromSlice ...

func NewPairFromText

func NewPairFromText(text string) *Pair

NewPairFromText ...

func (*Pair) Append

func (pair *Pair) Append(anotherPair *Pair) *Pair

Append ...

func (*Pair) Compare

func (pair *Pair) Compare(sample *Pair) (ComparisonResult, error)

Compare ...

func (*Pair) DeepSlice

func (pair *Pair) DeepSlice() ([]interface{}, error)

DeepSlice ...

func (*Pair) Equals

func (pair *Pair) Equals(sample *Pair) (bool, error)

Equals ...

func (*Pair) Item

func (pair *Pair) Item(index float64) (item interface{}, ok bool)

Item ...

func (*Pair) Size

func (pair *Pair) Size() int

Size ...

func (*Pair) Slice

func (pair *Pair) Slice() []interface{}

Slice ...

func (*Pair) Text

func (pair *Pair) Text() (string, error)

Text ...

Jump to

Keyboard shortcuts

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