Refactored code structure

This commit is contained in:
2024-07-03 11:39:24 +02:00
parent ed03f6a802
commit feebfe65bb
54 changed files with 583 additions and 450 deletions

View File

@ -0,0 +1,13 @@
package errors
import "fmt"
// VariableAlreadyExists is used when existing variables are used for new variable declarations.
type VariableAlreadyExists struct {
Name string
}
// Error generates the string representation.
func (err *VariableAlreadyExists) Error() string {
return fmt.Sprintf("Variable '%s' already exists", err.Name)
}