utils

package
v0.0.0-...-86e646e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must[R any](r R, e error) R

func Throw

func Throw(e error)

Types

type Lazy

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

func NewLazy

func NewLazy[V any](fn func() (V, error)) *Lazy[V]

func (*Lazy[V]) Get

func (l *Lazy[V]) Get() (V, error)

Jump to

Keyboard shortcuts

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