Refactored code structure
This commit is contained in:
parent
9e52e2dd1c
commit
fd6e874b44
54 changed files with 583 additions and 450 deletions
13
src/build/errors/InvalidOperator.go
Normal file
13
src/build/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