Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Singleton ¶
type Singleton[V any] struct { // contains filtered or unexported fields }
Singleton is a singleton.
It must be constructed with NewSingleton.
func NewSingleton ¶
NewSingleton returns a new Singleton.
The get function must only return the zero value of V on error.
Click to show internal directories.
Click to hide internal directories.