typex

package
v0.3.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjOf

func ObjOf(i ...interface{}) []interface{}

func StrOf

func StrOf(s ...string) []string

StrOf string slice

Types

type M

type M map[string]interface{}

type Queue

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

func NewQueue

func NewQueue(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()

func (*Queue) PopFirst

func (t *Queue) PopFirst()

func (*Queue) Push

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

type Set

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

func NewSet

func NewSet(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{})

type SyncMap

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

func NewSyncMap

func NewSyncMap() *SyncMap

func (*SyncMap) Delete

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

func (*SyncMap) Each

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

func (*SyncMap) Get

func (t *SyncMap) Get(key interface{}) (value interface{})

func (*SyncMap) Has

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

func (*SyncMap) Len

func (t *SyncMap) Len() int

func (*SyncMap) Load

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

func (*SyncMap) Map

func (t *SyncMap) Map(data interface{})

func (*SyncMap) Range

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

func (*SyncMap) Set

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

Directories

Path Synopsis
doc https://godoc.org/github.com/stretchr/objx
doc https://godoc.org/github.com/stretchr/objx

Jump to

Keyboard shortcuts

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