error_support

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(err error, out interface{})

func Init

func Init(path string)

func PrintAstInfo

func PrintAstInfo(fileName, src string, mode parser.Mode)

print go file ast detail

Types

type Error

type Error struct {
	Name string
	Code int
	Msg  string
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Sprintf

func (e *Error) Sprintf(args ...interface{}) *Error

type ErrorCode

type ErrorCode struct {
	Package string
	// contains filtered or unexported fields
}

func (*ErrorCode) Errors

func (ec *ErrorCode) Errors() map[int]*Error

Jump to

Keyboard shortcuts

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