Documentation ¶
Overview ¶
Package unique implements the upstream Go unique package for TinyGo.
It is not a full implementation: while it should behave the same way, it doesn't free unreferenced uniqued objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle[T comparable] struct { // contains filtered or unexported fields }
Unique handle for the given value. Comparing two handles is cheap.
func Make ¶
func Make[T comparable](value T) Handle[T]
Make a new unqique handle for the given value.
Click to show internal directories.
Click to hide internal directories.