package unique

Import Path
	unique (on go.dev)

Dependency Relation
	imports 7 packages, and imported by one package

Involved Source Files clone.go The unique package provides facilities for canonicalizing ("interning") comparable values. handle.go
Package-Level Type Names (only one)
/* sort by: | */
Type Parameters: T: comparable Handle is a globally unique identity for some value of type T. Two handles compare equal exactly if the two values used to create the handles would have also compared equal. The comparison of two handles is trivial and typically much more efficient than comparing the values used to create them. Value returns a shallow copy of the T value that produced the Handle. func Make[T](value T) Handle[T]
Package-Level Functions (only one)
Type Parameters: T: comparable Make returns a globally unique handle for a value of type T. Handles are equal if and only if the values used to produce them are equal.