Minor improvements
This commit is contained in:
parent
77ad91a297
commit
4655e74c2a
@ -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
|
||||||
|
@ -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)"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user