verr

package
v0.0.0-...-8c601a0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeoutErr = errors.New("timeout")

Functions

func SendTimeout

func SendTimeout[T any](result chan T, v T, timeout time.Duration) error

Types

type JsonErr

type JsonErr struct {
	Err error `json:"_err"`
}

type ValErr

type ValErr[T any] struct {
	Value *T
	Err   error
}

func (ValErr[T]) MarshalJSON

func (v ValErr[T]) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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