Documentation ¶
Overview ¶
The immutable package defines immutable wrappers around common data structures. These are used for additional type safety inside gopls.
See the "persistent" package for copy-on-write data structures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
Map is an immutable wrapper around an ordinary Go map.
func MapOf ¶
func MapOf[K comparable, V any](m map[K]V) Map[K, V]
MapOf wraps the given Go map.
The caller must not subsequently mutate the map.
Click to show internal directories.
Click to hide internal directories.