errors

package
v2.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapErrors

func MapErrors(errs []error, f func(error) error) []error

func NotePosition

func NotePosition(p token.Position, e error) error

func NotePositionAll

func NotePositionAll(p token.Position, errs []error) []error

Types

type ErrorCollector

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

func (*ErrorCollector) Add

func (ec *ErrorCollector) Add(errs ...error)

func (*ErrorCollector) Errors

func (ec *ErrorCollector) Errors() []error

type GenErr

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

func (*GenErr) Error

func (w *GenErr) Error() string

Jump to

Keyboard shortcuts

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