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/KeywordNotImplemented.go
Normal file
13
src/build/errors/KeywordNotImplemented.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package errors
|
||||
|
||||
import "fmt"
|
||||
|
||||
// KeywordNotImplemented error is created when we find a keyword without an implementation.
|
||||
type KeywordNotImplemented struct {
|
||||
Keyword string
|
||||
}
|
||||
|
||||
// Error generates the string representation.
|
||||
func (err *KeywordNotImplemented) Error() string {
|
||||
return fmt.Sprintf("Keyword not implemented: '%s'", err.Keyword)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue