optional

package
v0.0.0-...-802e8cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Optional

type Optional[T any] struct {
	// contains filtered or unexported fields
}

func (*Optional[T]) HasValue

func (o *Optional[T]) HasValue() bool

func (*Optional[T]) Set

func (o *Optional[T]) Set(value T)

func (*Optional[T]) Unset

func (o *Optional[T]) Unset()

func (*Optional[T]) Value

func (o *Optional[T]) Value(defaultValue ...T) T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL