typex

package
v0.3.32 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFound = new(struct{})

Functions

func ObjOf

func ObjOf(s1 interface{}, ss ...interface{}) []interface{}

ObjOf object slice

func StrOf

func StrOf(s1 string, ss ...string) []string

StrOf string slice

func ValueOf added in v0.3.18

func ValueOf(s1 reflect.Value, ss ...reflect.Value) []reflect.Value

Types

type CMap added in v0.3.23

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

func (*CMap) Del added in v0.3.23

func (t *CMap) Del(key string)

func (*CMap) Get added in v0.3.23

func (t *CMap) Get(key string) interface{}

func (*CMap) GetSet added in v0.3.23

func (t *CMap) GetSet(key string, val interface{}) (interface{}, bool)

func (*CMap) Has added in v0.3.23

func (t *CMap) Has(key string) bool

func (*CMap) Keys added in v0.3.23

func (t *CMap) Keys() []string

func (*CMap) Set added in v0.3.23

func (t *CMap) Set(key string, val interface{})

type M

type M map[string]interface{}

type Map added in v0.3.22

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

func (*Map) Del added in v0.3.23

func (t *Map) Del(key string)

func (*Map) Each added in v0.3.22

func (t *Map) Each(fn func(name string, val interface{}))

func (*Map) Get added in v0.3.22

func (t *Map) Get(key string) interface{}

func (*Map) Has added in v0.3.22

func (t *Map) Has(key string) bool

func (*Map) Keys added in v0.3.23

func (t *Map) Keys() []string

func (*Map) Load added in v0.3.22

func (t *Map) Load(key string) (interface{}, bool)

func (*Map) Map added in v0.3.23

func (t *Map) Map() map[string]interface{}

func (*Map) Set added in v0.3.22

func (t *Map) Set(key string, val interface{})

type MapRWM added in v0.3.23

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

func (*MapRWM) Del added in v0.3.23

func (t *MapRWM) Del(key string)

func (*MapRWM) Each added in v0.3.23

func (t *MapRWM) Each(fn func(name string, val interface{}))

func (*MapRWM) Get added in v0.3.23

func (t *MapRWM) Get(key string) interface{}

func (*MapRWM) Has added in v0.3.23

func (t *MapRWM) Has(key string) bool

func (*MapRWM) Keys added in v0.3.23

func (t *MapRWM) Keys() []string

func (*MapRWM) Load added in v0.3.23

func (t *MapRWM) Load(key string) (interface{}, bool)

func (*MapRWM) Map added in v0.3.23

func (t *MapRWM) Map() map[string]interface{}

func (*MapRWM) Set added in v0.3.23

func (t *MapRWM) Set(key string, val interface{})

type Queue

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

func QueueOf added in v0.3.18

func QueueOf(val ...interface{}) *Queue

func (*Queue) Del

func (t *Queue) Del(index uint32)

func (*Queue) First

func (t *Queue) First() interface{}

func (*Queue) Get

func (t *Queue) Get(index uint32) interface{}

func (*Queue) Last

func (t *Queue) Last() interface{}

func (*Queue) List

func (t *Queue) List() []interface{}

func (*Queue) Pop

func (t *Queue) Pop() interface{}

func (*Queue) PopFirst

func (t *Queue) PopFirst() interface{}

func (*Queue) Push

func (t *Queue) Push(val interface{})

type SMap added in v0.3.18

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

func (*SMap) Delete added in v0.3.18

func (t *SMap) Delete(key interface{})

func (*SMap) Each added in v0.3.18

func (t *SMap) Each(fn interface{}) (err error)

func (*SMap) Get added in v0.3.18

func (t *SMap) Get(key interface{}) interface{}

func (*SMap) Has added in v0.3.18

func (t *SMap) Has(key interface{}) (ok bool)

func (*SMap) Load added in v0.3.18

func (t *SMap) Load(key interface{}) (value interface{}, ok bool)

func (*SMap) Map added in v0.3.18

func (t *SMap) Map(fn func(val interface{}) interface{})

func (*SMap) MapTo added in v0.3.21

func (t *SMap) MapTo(data interface{}) (err error)

func (*SMap) Range added in v0.3.18

func (t *SMap) Range(f func(key, value interface{}) bool)

func (*SMap) Set added in v0.3.18

func (t *SMap) Set(key, value interface{})

type Set

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

func SetOf added in v0.3.18

func SetOf(val ...interface{}) *Set

func (*Set) Add

func (t *Set) Add(v interface{})

func (*Set) Each

func (t *Set) Each(fn interface{})

func (*Set) Has

func (t *Set) Has(v interface{}) bool

func (*Set) Len

func (t *Set) Len() uint32

func (*Set) List

func (t *Set) List() (val []interface{})

func (*Set) Map added in v0.3.23

func (t *Set) Map(data interface{}) (err error)

Jump to

Keyboard shortcuts

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