values

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 0 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]) OrDefault

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

Jump to

Keyboard shortcuts

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