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)
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.
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |