photoprism/pkg/report/bool.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

18 lines
235 B
Go

package report
const (
Enabled = "enabled"
Disabled = "disabled"
Yes = "yes"
No = "no"
)
// Bool returns t or f, depending on the value of b.
func Bool(b bool, t, f string) string {
if b {
return t
}
return f
}