Properly test for boolean "true"

"true" was treated as an invalid boolean. All strings in the slice of
valid boolean values need to be lowercase, since the input is lowercased
before comparison.
This commit is contained in:
Jim Ursetto 2022-05-01 20:52:35 -05:00
parent 7befa36001
commit 0bfb740fcd
1 changed files with 1 additions and 1 deletions

View File

@ -18,4 +18,4 @@ const (
var False = []string{"off", "no", "0", "false"}
// True is slice of array for true logical representation in string
var True = []string{"on", "yes", "1", "True"}
var True = []string{"on", "yes", "1", "true"}