errchain

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlError

type PlError struct {
	PosChain []Position `json:"pos_chain"`
	Err      string     `json:"error"`
}

func NewErr

func NewErr(file string, pos token.LnColPos, err string) *PlError

func (*PlError) ChainAppend

func (e *PlError) ChainAppend(file string, pos token.LnColPos) *PlError

func (*PlError) Copy

func (e *PlError) Copy() *PlError

func (*PlError) Error

func (e *PlError) Error() string

type PlErrors

type PlErrors []PlError

func (PlErrors) Error

func (e PlErrors) Error() string

type Position added in v0.2.2

type Position struct {
	File string `json:"file"` // filename or filepath
	Ln   int    `json:"ln"`
	Col  int    `json:"col"`
	Pos  int    `json:"pos"`
}

Jump to

Keyboard shortcuts

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