Ai
1 Star 1 Fork 0

bon-ami/eztools

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
consts.go 1.07 KB
Copy Edit Raw Blame History
Allen Tse authored 2023-01-12 15:42 +08:00 . thorough comments and camel names
package eztools
import "errors"
const (
// DefID is the default ID
DefID = 0
// AllID stands for all items, which itself is out of valid ID scope
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")
// ErrAbort stands for abort, such as requesting to exit from UI
ErrAbort = errors.New("abort")
// ErrIncomplete stands for incomplete results, that is maybe minor
ErrIncomplete = errors.New("incomplete results")
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/bon-ami/eztools.git
git@gitee.com:bon-ami/eztools.git
bon-ami
eztools
eztools
v5.0.2

Search