photoprism/pkg/report/bool.go
Michael Mayer 884dea17de Security: Use individual preview tokens for each user account #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-13 22:11:02 +02:00

17 lines
249 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(value bool, yes, no string) string {
if value {
return yes
}
return no
}