Back to godoc.org

Package rich

v0.0.0 (b212643)
Latest Go to latest
Published: May 17, 2020 | License: MIT | Module: github.com/awfm/rich

Index

Package Files

type Error

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

func Errorf

func Errorf(format string, a ...interface{}) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Sugar

func (e *Error) Sugar() *Sugared

func (*Error) With

func (e *Error) With(fields ...zap.Field) *Error

type Logger

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

func Log

func Log(log *zap.Logger) *Logger

func (*Logger) With

func (l *Logger) With(fields ...zap.Field) *zap.Logger

type Sugared

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

func (*Sugared) Error

func (s *Sugared) Error() string

func (*Sugared) With

func (s *Sugared) With(args ...interface{}) *Sugared

type SugaredLogger

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

func Sugar

func Sugar(log *zap.SugaredLogger) *SugaredLogger

func (*SugaredLogger) With

func (s *SugaredLogger) With(args ...interface{}) *zap.SugaredLogger
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier