package
1.12.0-alpha20250213
Repository: https://github.com/hashicorp/terraform.git
Documentation: pkg.go.dev

# Functions

NewMap constructs a new map whose key type knows how to calculate its own unique keys, by implementing [UniqueKeyer] of itself.
NewMapCmp constructs a new set for any comparable key type, using the built-in == operator as the definition of key equivalence.
NewMapFunc constructs a new map with the given "map function".
NewSet constructs a new set whose element type knows how to calculate its own unique keys, by implementing [UniqueKeyer] of itself.
NewSetCmp constructs a new set for any comparable type, using the built-in == operator as the definition of element equivalence.
NewSetFunc constructs a new set with the given "key function".

# Variables

CmpOptions is a set of options for use with the "go-cmp" module when comparing data structures that contain collection types from this package.

# Structs

Set represents an associative array from keys of type K to values of type V.
MapElem represents a single element of a map.
Set represents an unordered set of values of a particular type.

# Interfaces

UniqueKey represents a value that is comparable and uniquely identifies another value of type T.
A UniqueKeyer is a type that knows how to calculate a unique key itself.