Enforced consistent naming

This commit is contained in:
Eduard Urbach 2024-06-26 23:24:11 +02:00
parent 0394d68bdf
commit 51a2308179
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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)
}