errlogger

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleErrLogger

type ConsoleErrLogger struct{}

func (*ConsoleErrLogger) Detailf

func (l *ConsoleErrLogger) Detailf(pos token.Pos, msg string, args ...interface{})

func (*ConsoleErrLogger) Failf

func (l *ConsoleErrLogger) Failf(pos token.Pos, msg string, args ...interface{})

type ErrLogger

type ErrLogger interface {
	Failf(pos token.Pos, msg string, args ...interface{})
	Detailf(pos token.Pos, msg string, args ...interface{})
}

type ErrLoggerWrapper

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

func NewErrLoggerBase

func NewErrLoggerBase(l ErrLogger) *ErrLoggerWrapper

func (*ErrLoggerWrapper) Detailf

func (l *ErrLoggerWrapper) Detailf(pos token.Pos, msg string, args ...interface{})

func (*ErrLoggerWrapper) Error

func (l *ErrLoggerWrapper) Error() error

func (*ErrLoggerWrapper) Failf

func (l *ErrLoggerWrapper) Failf(pos token.Pos, msg string, args ...interface{})

Jump to

Keyboard shortcuts

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