Documentation
¶
Overview ¶
Package immutable provides immutable types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option[T any] struct { // contains filtered or unexported fields }
Option represents an item that may or may not have a value.
func (Option[T]) HasValue ¶
HasValue returns a boolean indicating whether or not this option contains a value. If it returns true, this Option contains a value, if it is false it contains no value.
func (Option[T]) MarshalJSON ¶ added in v0.2.2
MarshalJSON implements the json.Marshaler interface.
func (*Option[T]) UnmarshalJSON ¶ added in v0.2.2
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.