maps

package
v0.0.0-...-478ad6c Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseInsensitiveMap

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

func NewCaseInsensitiveMap

func NewCaseInsensitiveMap[T any]() *CaseInsensitiveMap[T]

func NewCaseInsensitiveMapWithCapacity

func NewCaseInsensitiveMapWithCapacity[T any](capacity int) *CaseInsensitiveMap[T]

func (*CaseInsensitiveMap[T]) Copy

func (m *CaseInsensitiveMap[T]) Copy() *CaseInsensitiveMap[T]

func (*CaseInsensitiveMap[T]) Delete

func (m *CaseInsensitiveMap[T]) Delete(key string)

func (*CaseInsensitiveMap[T]) Get

func (m *CaseInsensitiveMap[T]) Get(key string) (T, bool)

func (*CaseInsensitiveMap[T]) GetOrDefault

func (m *CaseInsensitiveMap[T]) GetOrDefault(key string, defaultValues ...T) T

func (*CaseInsensitiveMap[T]) Has

func (m *CaseInsensitiveMap[T]) Has(key string) bool

func (*CaseInsensitiveMap[T]) Iterator

func (m *CaseInsensitiveMap[T]) Iterator() iter.Seq2[string, T]

func (*CaseInsensitiveMap[T]) Keys

func (m *CaseInsensitiveMap[T]) Keys() iter.Seq[string]

func (*CaseInsensitiveMap[T]) Len

func (m *CaseInsensitiveMap[T]) Len() int

func (*CaseInsensitiveMap[T]) MarshalJSON

func (m *CaseInsensitiveMap[T]) MarshalJSON() ([]byte, error)

func (*CaseInsensitiveMap[T]) Set

func (m *CaseInsensitiveMap[T]) Set(key string, value T)

func (*CaseInsensitiveMap[T]) UnmarshalJSON

func (m *CaseInsensitiveMap[T]) UnmarshalJSON(data []byte) error

func (*CaseInsensitiveMap[T]) Values

func (m *CaseInsensitiveMap[T]) Values() iter.Seq[T]

type OrderedMap

type OrderedMap[K comparable, V any] struct {
	*orderedmap.OrderedMap[K, V]
	// contains filtered or unexported fields
}

func NewOrderedMap

func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V]

func (*OrderedMap[K, V]) Copy

func (m *OrderedMap[K, V]) Copy() *OrderedMap[K, V]

func (*OrderedMap[K, V]) Iterator

func (m *OrderedMap[K, V]) Iterator() iter.Seq2[K, V]

func (*OrderedMap[K, V]) MarshalJSON

func (m *OrderedMap[K, V]) MarshalJSON() ([]byte, error)

func (*OrderedMap[K, V]) SetEscapeHTML

func (m *OrderedMap[K, V]) SetEscapeHTML(on bool)

func (*OrderedMap[K, V]) UnmarshalJSON

func (m *OrderedMap[K, V]) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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