udwMap

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugStringIntPairList

func DebugStringIntPairList(pairList []StringIntPair) string

func GetKeyListFromPairList

func GetKeyListFromPairList(pairList []KeyValuePair) []string

func MapStringBoolToSortedSlice

func MapStringBoolToSortedSlice(m map[string]bool) []string

func MapStringIntGetKeyList

func MapStringIntGetKeyList(m map[string]int) (list []string)

func MapStringIntGetKeyListByIntDesc

func MapStringIntGetKeyListByIntDesc(m map[string]int) (list []string)

func MapStringSetStringAdd

func MapStringSetStringAdd(m map[string]map[string]struct{}, k1 string, k2 string)

func MapStringStringClone

func MapStringStringClone(m map[string]string) map[string]string

func MapStringStringCloneAndSet

func MapStringStringCloneAndSet(m map[string]string, kvList ...string) map[string]string

func MapStringStringGetKeyList

func MapStringStringGetKeyList(m map[string]string) []string

func MapStringStringGetValueList

func MapStringStringGetValueList(m map[string]string) []string

func MapStringStringValueSet

func MapStringStringValueSet(m map[string]string) map[string]struct{}

func SetStringAddStringList

func SetStringAddStringList(m map[string]struct{}, list []string)

func SetStringMapEqualStringList

func SetStringMapEqualStringList(setStringMap map[string]struct{}, stringList []string) bool

func SetStringToStringListAes

func SetStringToStringListAes(m map[string]struct{}) []string

func SortKeyValuePairList

func SortKeyValuePairList(data []KeyValuePair)

func StringInt64PairSliceSort

func StringInt64PairSliceSort(pairList []KeyValueInt64Pair)

func StringIntPairSliceSortByIntDesc

func StringIntPairSliceSortByIntDesc(pairList []StringIntPair)

func StringIntPairSortByString

func StringIntPairSortByString(pairList []StringIntPair)

func StringIntPairSortByStringDesc

func StringIntPairSortByStringDesc(pairList []StringIntPair)

func StringListNoRepeat

func StringListNoRepeat(sList []string) []string

func StringListToMapStringBool

func StringListToMapStringBool(sList []string) map[string]bool

func StringListToSetString

func StringListToSetString(list []string) map[string]struct{}

func StringSliceDeleteString

func StringSliceDeleteString(ss []string, sWillDelete string) []string

Types

type IntIntPair

type IntIntPair struct {
	K int `json:",omitempty"`
	V int `json:",omitempty"`
}

func MapIntIntToPairListByKeyIntAes

func MapIntIntToPairListByKeyIntAes(m map[int]int) []IntIntPair

func MapIntIntToPairListByKeyIntDesc

func MapIntIntToPairListByKeyIntDesc(m map[int]int) []IntIntPair

type KeyValueInt64Pair

type KeyValueInt64Pair struct {
	Key   string
	Value int64
}

func MapStringInt64ToStringIntPairListByIntDesc

func MapStringInt64ToStringIntPairListByIntDesc(m map[string]int64) []KeyValueInt64Pair

type KeyValuePair

type KeyValuePair struct {
	Key   string
	Value string
}

func MapStringStringToKeyValuePairListAes

func MapStringStringToKeyValuePairListAes(m map[string]string) []KeyValuePair

type KeyValueSlicePair

type KeyValueSlicePair struct {
	K []byte
	V []byte
}

type KvStringBytePair

type KvStringBytePair struct {
	K string
	V []byte
}

type MutexMapStringSetString

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

func (*MutexMapStringSetString) Add

func (m *MutexMapStringSetString) Add(k1 string, k2 string)

func (*MutexMapStringSetString) GetK1Len

func (m *MutexMapStringSetString) GetK1Len(k1 string) int

func (*MutexMapStringSetString) Has

func (m *MutexMapStringSetString) Has(k1 string, k2 string) bool

type MutexMapStringString

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

func (*MutexMapStringString) Del

func (m *MutexMapStringString) Del(k string)

func (*MutexMapStringString) Get

func (*MutexMapStringString) Set

func (m *MutexMapStringString) Set(k string, v string)

type MutexSetString

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

func (*MutexSetString) Clear

func (ss *MutexSetString) Clear()

func (*MutexSetString) Has

func (ss *MutexSetString) Has(k string) bool

func (*MutexSetString) Len

func (ss *MutexSetString) Len() int

func (*MutexSetString) Set

func (ss *MutexSetString) Set(k string)

func (*MutexSetString) SetAllByMap

func (ss *MutexSetString) SetAllByMap(m map[string]struct{})

type StringIntPair

type StringIntPair struct {
	S string
	I int
}

func MapStringIntToStringIntPairListByIntDesc

func MapStringIntToStringIntPairListByIntDesc(m map[string]int) []StringIntPair

type StringListSet

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

func (*StringListSet) AppendString

func (this *StringListSet) AppendString(s string)

func (*StringListSet) AppendStringSlice

func (this *StringListSet) AppendStringSlice(ss []string)

func (StringListSet) At

func (this StringListSet) At(idx int) (v string, exists bool)

func (*StringListSet) Contains

func (this *StringListSet) Contains(s string) bool

func (*StringListSet) GetSliceCopy

func (this *StringListSet) GetSliceCopy() []string

func (StringListSet) Intersection

func (this StringListSet) Intersection(other StringListSet) StringListSet

func (StringListSet) Len

func (this StringListSet) Len() int

func (*StringListSet) Sort

func (this *StringListSet) Sort()

type StringMapSet

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

func NewStringMapSet

func NewStringMapSet() StringMapSet

func (StringMapSet) Clear

func (this StringMapSet) Clear()

func (StringMapSet) Contains

func (this StringMapSet) Contains(s string) bool

func (StringMapSet) Delete

func (this StringMapSet) Delete(s string)

func (StringMapSet) GetInnerMap

func (this StringMapSet) GetInnerMap() map[string]struct{}

func (StringMapSet) GetStringSlice

func (this StringMapSet) GetStringSlice() []string

func (*StringMapSet) InsertMap

func (this *StringMapSet) InsertMap(m map[string]struct{})

func (StringMapSet) InsertSlice

func (this StringMapSet) InsertSlice(ss []string)

func (StringMapSet) IsZero

func (sms StringMapSet) IsZero() bool

func (StringMapSet) Len

func (this StringMapSet) Len() int

func (StringMapSet) Set

func (this StringMapSet) Set(s string)

Jump to

Keyboard shortcuts

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