pretty

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatErrorMessage

func FormatErrorMessage(message string, useColor bool) string

Types

type ErrorPrettyPrinter

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

func NewErrorPrettyPrinter

func NewErrorPrettyPrinter(writer io.Writer, useColor bool) ErrorPrettyPrinter

func (ErrorPrettyPrinter) PrettyPrintError

func (p ErrorPrettyPrinter) PrettyPrintError(err error, location common.Location, codes map[common.LocationID]string) error

Jump to

Keyboard shortcuts

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