ignoreCaseSorted

package
v0.0.0-...-d5d086f Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AscIter

type AscIter[T any] struct {
	Key   string
	Value T
	// contains filtered or unexported fields
}

func (*AscIter[T]) Range

func (iter *AscIter[T]) Range() bool

type DescIter

type DescIter[T any] struct {
	Key   string
	Value T
	// contains filtered or unexported fields
}

func (*DescIter[T]) Range

func (iter *DescIter[T]) Range() bool

type Dictionary

type Dictionary[T any] struct {
	// contains filtered or unexported fields
}

func MapToDictionary

func MapToDictionary[T any](source map[string]T) *Dictionary[T]

func (*Dictionary[T]) Ascend

func (d *Dictionary[T]) Ascend() *AscIter[T]

func (*Dictionary[T]) Back

func (d *Dictionary[T]) Back() *Iterator[T]

func (*Dictionary[T]) Delete

func (d *Dictionary[T]) Delete(key string)

func (*Dictionary[T]) Descend

func (d *Dictionary[T]) Descend() *DescIter[T]

func (*Dictionary[T]) Front

func (d *Dictionary[T]) Front() *Iterator[T]

func (*Dictionary[T]) Get

func (d *Dictionary[T]) Get(key string) (val T, ok bool)

func (*Dictionary[T]) Len

func (d *Dictionary[T]) Len() int

func (*Dictionary[T]) Load

func (d *Dictionary[T]) Load(key string) (val T, ok bool)

Load is same as Get that is a compatible method with "sync".Map

func (*Dictionary[T]) Range

func (d *Dictionary[T]) Range(f func(string, T) bool)

func (*Dictionary[T]) Set

func (d *Dictionary[T]) Set(key string, val T)

func (*Dictionary[T]) Store

func (d *Dictionary[T]) Store(key string, val T)

Store is same as Set that is a compatible method with "sync".Map

type Iterator

type Iterator[T any] struct {
	Key   string
	Value T
	// contains filtered or unexported fields
}

func (*Iterator[T]) Next

func (iter *Iterator[T]) Next() *Iterator[T]

func (*Iterator[T]) Prev

func (iter *Iterator[T]) Prev() *Iterator[T]

Jump to

Keyboard shortcuts

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