typex

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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

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

Types

type CMap

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

func (*CMap) Del

func (t *CMap) Del(key string)

func (*CMap) Get

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

func (*CMap) GetSet

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

func (*CMap) Has

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

func (*CMap) Keys

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

func (*CMap) Set

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

type M

type M map[string]interface{}

type Map

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

func (*Map) Del

func (t *Map) Del(key string)

func (*Map) Each

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

func (*Map) Get

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

func (*Map) Has

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

func (*Map) Keys

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

func (*Map) Load

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

func (*Map) Map

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

func (*Map) Set

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

type MapRWM

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

func (*MapRWM) Del

func (t *MapRWM) Del(key string)

func (*MapRWM) Each

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

func (*MapRWM) Get

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

func (*MapRWM) Has

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

func (*MapRWM) Keys

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

func (*MapRWM) Load

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

func (*MapRWM) Map

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

func (*MapRWM) Set

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

type Queue

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

func QueueOf

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

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

func (*SMap) Delete

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

func (*SMap) Each

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

func (*SMap) Get

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

func (*SMap) Has

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

func (*SMap) Load

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

func (*SMap) LoadAndDelete added in v0.1.2

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

func (*SMap) Map

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

func (*SMap) MapTo

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

func (*SMap) Range

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

func (*SMap) Set

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

type Set

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

func SetOf

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

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