typex

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: May 12, 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(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 M

type M map[string]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()

func (*Queue) PopFirst

func (t *Queue) PopFirst()

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{}) (value interface{})

func (*SMap) Has added in v0.3.18

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

func (*SMap) Len added in v0.3.18

func (t *SMap) Len() int

func (*SMap) Load added in v0.3.18

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

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{})

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