Versions in this module Expand all Collapse all v1 v1.5.0 Feb 15, 2025 Changes in this version + type Optional struct + func CastInt[A, B constraints.Integer](a Optional[A]) (out Optional[B]) + func None[T any]() Optional[T] + func Some[T any](v T) Optional[T] + func (o *Optional[T]) Set(v T) + func (o *Optional[T]) Unset() + func (o Optional[T]) Get() (T, bool) + func (o Optional[T]) GetOr(def T) T + func (o Optional[T]) IsSet() bool + func (o Optional[T]) Unwrap() T