funcbox

package
v0.0.0-...-a0d5ace Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 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 FuncBox

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

func New

func New[T any](get func() (T, error), put func(T) error) FuncBox[T]

func (FuncBox[T]) Get

func (b FuncBox[T]) Get() (T, error)

func (FuncBox[T]) Put

func (b FuncBox[T]) Put(t T) error

Jump to

Keyboard shortcuts

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