f5a8c5a45d
Signed-off-by: Michael Mayer <michael@photoprism.app>
17 lines
235 B
Go
17 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
|
|
}
|