lazy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lazy

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

func NewLazy

func NewLazy[T any](provider func() (T, error)) Lazy[T]

func (Lazy[T]) Get

func (l Lazy[T]) Get() (v T, e error)

func (Lazy[T]) MustGet

func (l Lazy[T]) MustGet() T

Jump to

Keyboard shortcuts

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