wheat-cache/pkg/errorx/err.go

13 lines
204 B
Go
Raw Permalink Normal View History

2021-09-23 10:11:54 +08:00
package errorx
import (
"errors"
"fmt"
)
// New TODO 添加链路追踪等 @bandl @lgq
2021-09-24 22:48:08 +08:00
func New(msg string, format ...interface{}) error {
msg = fmt.Sprintf(msg, format...)
2021-09-23 10:11:54 +08:00
return errors.New(msg)
}