Documentation
¶
Overview ¶
Provides functionality for bubbling internal errors up to the user in a pretty and concise way
Index ¶
Constants ¶
View Source
const ( ANSI_RESET = "\033[0m" ANSI_RED = "\033[91m" ANSI_YELLOW = "\033[93m" ANSI_BLUE = "\033[94m" ANSI_MAGENTA = "\033[95m" )
View Source
const MAX_ERRORS = 3
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶
func SetDefault(e *ErrorFormatter)
Types ¶
type ErrorFormatter ¶
type ErrorFormatter struct {
// contains filtered or unexported fields
}
func Default ¶
func Default() *ErrorFormatter
func NewFormatter ¶
func (*ErrorFormatter) Display ¶
func (e *ErrorFormatter) Display()
func (*ErrorFormatter) HasErrors ¶
func (e *ErrorFormatter) HasErrors() bool
Click to show internal directories.
Click to hide internal directories.