Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface[Value any] interface { // Set the value. Set(Value) // Get the value, IsNone() MUST be checked before calling this method Get() Value // Erase the existing value and returns true if there was value. // // After calling this, IsNone() will return true until Set(T) is called. Erase() (hadValue bool) // IsNone returns true if there is no value set. IsNone() bool // IsSome returns true if there is value set. IsSome() bool }
Interface defines required methods for an optional value.
Click to show internal directories.
Click to hide internal directories.