photoprism/pkg/list/strings.go
Michael Mayer f5a8c5a45d Auth: Session and ACL enhancements #98 #1746
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-09-28 09:01:17 +02:00

22 lines
465 B
Go

package list
// StringLengthLimit specifies the maximum length of string return values.
var StringLengthLimit = 767
// True and False specify boolean string representations.
var (
True = "true"
False = "false"
)
// Bool specifies boolean string values so they can be normalized.
var Bool = map[string]string{
"true": True,
"yes": True,
"on": True,
"enable": True,
"false": False,
"no": False,
"off": False,
"disable": False,
}