mapkey

package
v0.0.0-...-9a1677b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapKey

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

用于统计不重复的值,出现的次数

func NewMapKey

func NewMapKey() *MapKey

func NewMapKeyByNames

func NewMapKeyByNames(names []string) *MapKey

func (*MapKey) GetDuplicate

func (m *MapKey) GetDuplicate() map[string]map[string]struct{}

func (*MapKey) GetDuplicateByName

func (m *MapKey) GetDuplicateByName(name string) map[string]struct{}

func (*MapKey) GetNum

func (m *MapKey) GetNum() map[string]int

func (*MapKey) GetUniqData

func (m *MapKey) GetUniqData() map[string]map[string]struct{}

func (*MapKey) GetUniqDataByName

func (m *MapKey) GetUniqDataByName(name string) map[string]struct{}

func (*MapKey) GetUniqDataSlice

func (m *MapKey) GetUniqDataSlice() (ret []string)

获取slice的结果

func (*MapKey) GetUniqDataSliceByName

func (m *MapKey) GetUniqDataSliceByName(name string) (ret []string)

func (*MapKey) MapCount

func (m *MapKey) MapCount(v string)

func (*MapKey) MapCountByName

func (m *MapKey) MapCountByName(v, name string) error

Jump to

Keyboard shortcuts

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