cloudnet: initial version

This commit is contained in:
Yousong Zhou
2019-10-18 03:40:53 +00:00
parent 5b8fdcd5af
commit 0b6d33d4fc
43 changed files with 3778 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package models
type (
errNotFound error
errMoreThanOne error
)
func IsNotFound(err error) bool {
_, ok := err.(errNotFound)
return ok
}
func IsMoreThanOne(err error) bool {
_, ok := err.(errMoreThanOne)
return ok
}