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