Enforced consistent naming
This commit is contained in:
parent
0394d68bdf
commit
51a2308179
10 changed files with 180 additions and 150 deletions
13
src/errors/InvalidOperator.go
Normal file
13
src/errors/InvalidOperator.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue