Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func E

func E(argument interface{}, arguments ...interface{}) error

func Errorf

func Errorf(format string, args ...interface{}) error

    package for all error handling.

    func IsEmpty

    func IsEmpty(err error) bool

    func SetDebug

    func SetDebug(debugOn bool)

    func StringToError

    func StringToError(text string) error

      Str returns an error that formats as the given text. It is intended to be used as the error-typed argument to the E function.

      Types

      type Error

      type Error struct {
      	Op   Op
      	Kind Kind
      	Err  error
      	// contains filtered or unexported fields
      }

      func (*Error) Error

      func (e *Error) Error() string

      type Kind

      type Kind uint8
      const (
      	Ignore Kind = iota //Unclassified
      	Placeholder
      )

      func (Kind) String

      func (k Kind) String() string

      type Op

      type Op string

      Source Files