Enforced consistent naming

This commit is contained in:
Eduard Urbach 2024-06-26 23:24:11 +02:00
parent d1a3ffb1a5
commit 94151773a5
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
10 changed files with 180 additions and 150 deletions

View file

@ -0,0 +1,13 @@
package errors
import "fmt"
// InvalidOperator error is created when an operator is not valid.
type InvalidOperator struct {
Operator string
}
// Error generates the string representation.
func (err *InvalidOperator) Error() string {
return fmt.Sprintf("Invalid operator '%s'", err.Operator)
}