Minor improvements

This commit is contained in:
TwinProduction 2020-10-23 16:31:49 -04:00
parent 77ad91a297
commit 4655e74c2a
2 changed files with 10 additions and 5 deletions

View File

@ -76,9 +76,8 @@ func Load(configFile string) error {
if err != nil { if err != nil {
if os.IsNotExist(err) { if os.IsNotExist(err) {
return ErrConfigFileNotFound return ErrConfigFileNotFound
} else {
return err
} }
return err
} }
config = cfg config = cfg
return nil return nil

View File

@ -35,10 +35,16 @@ const (
// Values that could replace the placeholder: true, false // Values that could replace the placeholder: true, false
ConnectedPlaceHolder = "[CONNECTED]" ConnectedPlaceHolder = "[CONNECTED]"
LengthFunctionPrefix = "len(" // LengthFunctionPrefix is the prefix for the length function
PatternFunctionPrefix = "pat(" LengthFunctionPrefix = "len("
FunctionSuffix = ")"
// LengthFunctionPrefix is the prefix for the pattern function
PatternFunctionPrefix = "pat("
// LengthFunctionPrefix is the suffix for all functions
FunctionSuffix = ")"
// InvalidConditionElementSuffix is the suffix that will be appended to an invalid condition
InvalidConditionElementSuffix = "(INVALID)" InvalidConditionElementSuffix = "(INVALID)"
) )