photoprism/pkg/report/bool.go
Michael Mayer d8ab9616a5 Auth: Refactor user management API and CLI commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 15:12:10 +01:00

17 lines
239 B
Go

package report
const (
Enabled = "Enabled"
Disabled = ""
Yes = "Yes"
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
}