problem

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

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

List contains a list of problems. Typically functions bubble up an observed error. A List can be used to note the error and continue function execution thus turning "error" into the "problem".

func (*List) Add

func (p *List) Add(format string, args ...interface{}) *List

Adds a problem to the list using fmt.Errorf

func (*List) Errors

func (p *List) Errors() []error

Returns all added problems

Jump to

Keyboard shortcuts

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