tools

package
v0.0.0-...-d9894f7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceToStr

func InterfaceToStr(value interface{}) (string, string)

func InterfaceToStrMap

func InterfaceToStrMap(v []interface{}) map[string]interface{}

func Lengths

func Lengths(buf []byte) []byte

func StrToUpper

func StrToUpper(str string) string

func ValueToSliceInterface

func ValueToSliceInterface(v []reflect.Value) []interface{}

Types

type Any

type Any interface{}

type AnyListMap

type AnyListMap map[Any]Any

type AnyMap

type AnyMap struct {
	Map map[interface{}]interface{}
	// contains filtered or unexported fields
}

func NewAnyMap

func NewAnyMap() *AnyMap

func (*AnyMap) Get

func (m *AnyMap) Get(key interface{}) interface{}

func (*AnyMap) Set

func (m *AnyMap) Set(key, value interface{})

type AnyMaps

type AnyMaps map[Any]Any

type Count

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

func (*Count) Add

func (c *Count) Add() uint64

func (*Count) Value

func (c *Count) Value() uint64

type IdCount

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

func NewIdCount

func NewIdCount() *IdCount

func (*IdCount) Add

func (i *IdCount) Add(v interface{}) uint64

func (*IdCount) Check

func (i *IdCount) Check(k interface{}) (interface{}, bool)

func (*IdCount) Get

func (i *IdCount) Get(id uint64) interface{}

type ListMap

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

func NewListMap

func NewListMap() *ListMap

func (*ListMap) Delete

func (lm *ListMap) Delete(args ...Any) bool

func (*ListMap) IdDelete

func (lm *ListMap) IdDelete(key Any) bool

func (*ListMap) IdKey

func (lm *ListMap) IdKey(key Any) Any

func (*ListMap) IdSet

func (lm *ListMap) IdSet(key, value Any) bool

func (*ListMap) Is

func (lm *ListMap) Is(args ...Any) bool

func (*ListMap) Key

func (lm *ListMap) Key(args ...Any) Any

func (*ListMap) Set

func (lm *ListMap) Set(key, value Any) bool

func (*ListMap) UrlDelete

func (lm *ListMap) UrlDelete(args ...Any) bool

func (*ListMap) UrlKey

func (lm *ListMap) UrlKey(key, value Any) Any

func (*ListMap) UrlKeyList

func (lm *ListMap) UrlKeyList(key Any) map[Any]bool

func (*ListMap) UrlSet

func (lm *ListMap) UrlSet(key, value Any) bool

type Node

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

type SafeMap

type SafeMap sync.Map

type Stack

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

func NewStack

func NewStack() *Stack

func (*Stack) Pop

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

func (*Stack) Push

func (t *Stack) Push(value interface{})

func (*Stack) Top

func (t *Stack) Top() interface{}

Jump to

Keyboard shortcuts

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