values

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy[T any](value T) *T

Types

type Optional

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

func IfError

func IfError[T any](value T, err error) Optional[T]

func (Optional[T]) HasValue added in v0.5.2

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

func (Optional[T]) OrDefault

func (o Optional[T]) OrDefault(defValue T) T

func (Optional[T]) String added in v0.5.1

func (o Optional[T]) String() string

Jump to

Keyboard shortcuts

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