From 67da63ac031af9a55e53aaff673c046c45462451 Mon Sep 17 00:00:00 2001 From: bandl <1658002533@qq.com> Date: Tue, 5 Oct 2021 16:39:31 +0800 Subject: [PATCH] feat(errorx): add err --- pkg/errorx/dao.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkg/errorx/dao.go diff --git a/pkg/errorx/dao.go b/pkg/errorx/dao.go new file mode 100644 index 0000000..1e28c49 --- /dev/null +++ b/pkg/errorx/dao.go @@ -0,0 +1,9 @@ +package errorx + +func DaoTypeErr(typ string) error { + return New("the type is not: %s", typ) +} + +func NotKeyErr(key string) error { + return New("the key is not exist, key:%s", key) +}