rename internal package xlerrors -> slerrors.

This commit is contained in:
2020-05-15 10:02:43 +02:00
parent 14c9425ee7
commit 381cda1f8f
23 changed files with 73 additions and 72 deletions
+18
View File
@@ -0,0 +1,18 @@
package slerrors
type notFoundError struct {
Subject string
}
func (err *notFoundError) Error() string {
return err.Subject + " not found"
}
func NotFound(subject string) error {
return &notFoundError{Subject: subject}
}
func IsNotFound(err error) bool {
_, ok := err.(*notFoundError)
return ok
}
+5
View File
@@ -0,0 +1,5 @@
package slerrors
import "errors"
var PermissionDenied = errors.New("permission denied")