sortedmap

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 7

Documentation

Index

Constants

View Source
const (
	INIT_CAPA = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SSortedMap

type SSortedMap []sItem

func Add

func Add(ss SSortedMap, key string, value interface{}) SSortedMap

func Delete

func Delete(ss SSortedMap, key string) (SSortedMap, bool)

func DeleteIgnoreCase

func DeleteIgnoreCase(ss SSortedMap, key string) (SSortedMap, string, bool)

func Merge

func Merge(a, b SSortedMap) SSortedMap

order matters, values of the latter override the former

func NewSortedMap

func NewSortedMap() SSortedMap

func NewSortedMapFromMap

func NewSortedMapFromMap(omap map[string]interface{}) SSortedMap

func NewSortedMapFromMapWithCapa

func NewSortedMapFromMapWithCapa(omap map[string]interface{}, capa int) SSortedMap

func NewSortedMapWithCapa

func NewSortedMapWithCapa(capa int) SSortedMap

func Split

func Split(a, b SSortedMap) (a_b, anbA, anbB, b_a SSortedMap)

func (SSortedMap) Contains

func (ss SSortedMap) Contains(needle string) bool

func (SSortedMap) ContainsAll

func (ss SSortedMap) ContainsAll(needles ...string) bool

func (SSortedMap) ContainsAny

func (ss SSortedMap) ContainsAny(needles ...string) bool

func (SSortedMap) Get

func (ss SSortedMap) Get(key string) (interface{}, bool)

func (SSortedMap) GetIgnoreCase

func (ss SSortedMap) GetIgnoreCase(key string) (interface{}, string, bool)

func (SSortedMap) Keys

func (ss SSortedMap) Keys() []string

type SSortedMapIterator

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

func NewIterator

func NewIterator(smap SSortedMap) *SSortedMapIterator

func (SSortedMapIterator) Get

func (i SSortedMapIterator) Get() (string, interface{})

func (SSortedMapIterator) HasMore

func (i SSortedMapIterator) HasMore() bool

func (*SSortedMapIterator) Init

func (i *SSortedMapIterator) Init(smap SSortedMap)

func (*SSortedMapIterator) Next

func (i *SSortedMapIterator) Next()

Jump to

Keyboard shortcuts

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