Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(message string) error

func Newf

func Newf(format string, a ...interface{}) error

func WithError

func WithError(message string, inner error) error

func WithField

func WithField(key string, val interface{}, message string) error

func WithFieldE

func WithFieldE(key string, val interface{}, message string, inner error) error

func WithFields

func WithFields(fields map[string]interface{}, message string) error

func WithFieldsE

func WithFieldsE(fields map[string]interface{}, message string, inner error) error

Types

type Error

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

func (*Error) Error

func (e *Error) Error() string

func (*Error) GolfExportedFields

func (e *Error) GolfExportedFields() map[string]interface{}

func (*Error) PlayGolf

func (e *Error) PlayGolf() bool

type Fields

type Fields map[string]interface{}

Jump to

Keyboard shortcuts

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