Konfi-Castle-Kasino/pkg/models/errors.go
kolaente 4de30c61a0
All checks were successful
continuous-integration/drone/push Build is passing
Fixed lint
2019-09-05 21:35:07 +02:00

14 lines
301 B
Go

package models
import "fmt"
// ErrKofiDoesNotExist represents an error where a kofi does not exist
type ErrKofiDoesNotExist struct {
ID int64
}
// Error is Go's error implementation
func (err ErrKofiDoesNotExist) Error() string {
return fmt.Sprintf("This kofi does not exist [ID: %n]", err.ID)
}