errors

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(err error) error

Cause : cause error

func Errorf

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

Errorf : 通过参数格式化error

func New

func New(msg string) error

New : new error

func PrintStack

func PrintStack(err error) string

PrintStack : 打印error栈

func Wrap

func Wrap(err error, msg string) error

Wrap : 包装error

func Wrapf

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

Wrapf : 包装并且格式化error

Types

This section is empty.

Jump to

Keyboard shortcuts

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