Categorygithub.com/puppetlabs/leg/datastructure
modulepackage
0.1.0
Repository: https://github.com/puppetlabs/leg.git
Documentation: pkg.go.dev

# Functions

NewHashMap creates a new hash map with the default initial capacity of this Go implementation.
NewHashMapWithCapacity creates a new hash map with the specified initial capacity.
NewHashSet creates a new set backed by a HashMap.
NewHashSetWithCapacity creates a new set backed by a HashMap with the given initial capacity.
NewLinkedHashMap creates a new linked hash map with the default initial capacity of this Go implementation.
NewLinkedHashMapWithCapacity creates a new linked hash map with the specified initial capacity.
NewLinkedHashSet creates a new set backed by a LinkedHashMap.
NewLinkedHashSetWithCapacity creates a new set backed by a LinkedHashMap with the given initial capacity.
NewMapBackedSet creates a new map-backed set with the given map for storage.
NewPriorityQueue creates a new priority queue backed by a heap.
NewSynchronizedMap creates a synchronization layer over a given map.
NewSynchronizedSet creates a synchronization layer over a given set.

# Variables

ErrInvalidFuncSignature is raised in a panic() if a function passed to a ForEachInto() method does not conform to the expected interface.
ErrStopIteration causes a ForEach() or ForEachInto() loop to terminate early.

# Structs

LinkedHashMap is hash map that iterates its entries in the order they were inserted into the map.
MapBackedSet is a set that stores its elements as keys in a given map.
No description provided by the author
SynchronizedMap is a synchronization layer for a Map.
SynchronizedSet is a synchronization layer for a Set.

# Interfaces

Container represents any type with elements, such as a map, list, or set.
Map represents a key-to-value mapping, where keys are unique.
A Set is a well-defined collection of distinct objects.

# Type aliases

HashMap is a simple hash map implementation, backed by the built-in map type in Go.
No description provided by the author
No description provided by the author