1 Star 1 Fork 0

bon-ami / eztools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
consts.go 932 Bytes
一键复制 编辑 原始数据 按行查看 历史
Allen Tse 提交于 2021-10-08 16:46 . v2
package eztools
import "errors"
const (
// defValidID is the smallest valid ID, different from the default
defValidID = DefID + 1
// DefID is the default ID
DefID = 0
// AllID stands for all items
AllID = DefID - 1
// InvalidID better to be negative to be different from a normal ID
// it is used as indexes into slices, too
InvalidID = DefID - 2 //pairs defined some related
)
var (
// ErrNoValidResults stands for no valid results
ErrNoValidResults = errors.New("No Valid results")
// ErrOutOfBound stands for out of bound
ErrOutOfBound = errors.New("Out of bound")
// ErrInvalidInput stands for invalid input
ErrInvalidInput = errors.New("Invalid input")
// ErrInExistence stands for result from input already in existence
ErrInExistence = errors.New("In Existence")
// ErrAccess stands for access failure, such as privilege, collision
ErrAccess = errors.New("Access failure")
)
Go
1
https://gitee.com/bon-ami/eztools.git
git@gitee.com:bon-ami/eztools.git
bon-ami
eztools
eztools
v2.1.1

搜索帮助