Documentation ¶ Index ¶ Variables func Error2Fatal(err error) error func Errorf(format string, arguments ...interface{}) error func Fatalf(format string, arguments ...interface{}) error func GetStack(err error) string func IsFatal(err error) bool func New(format string, a ...interface{}) error type GError Constants ¶ This section is empty. Variables ¶ View Source var ( ErrNil = error(nil) ErrNotFound = errors.Errorf("not found") // this is not a really run error, it means Database/Collection not exist in mongodb. ) Functions ¶ func Error2Fatal ¶ func Error2Fatal(err error) error func Errorf ¶ func Errorf(format string, arguments ...interface{}) error func Fatalf ¶ func Fatalf(format string, arguments ...interface{}) error func GetStack ¶ func GetStack(err error) string func IsFatal ¶ func IsFatal(err error) bool func New ¶ func New(format string, a ...interface{}) error Types ¶ type GError ¶ type GError struct { } Source Files ¶ View all Source files errors.go Click to show internal directories. Click to hide internal directories.