Refactored code structure

This commit is contained in:
Eduard Urbach 2024-07-03 11:39:24 +02:00
parent 9e52e2dd1c
commit fd6e874b44
Signed by: eduard
GPG key ID: 49226B848C78F6C8
54 changed files with 583 additions and 450 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)
}