multibox

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrUnboxedTargetType

type ErrUnboxedTargetType struct {
	// contains filtered or unexported fields
}

func (ErrUnboxedTargetType) Error

func (e ErrUnboxedTargetType) Error() string

type MultiBox

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

func New

func New[T any](val any) (MultiBox[T], error)

func (MultiBox[T]) Get

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

func (MultiBox[T]) Put

func (b MultiBox[T]) Put(val T) error

Jump to

Keyboard shortcuts

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