2022-09-28 09:01:17 +02:00
|
|
|
package report
|
|
|
|
|
|
|
|
const (
|
|
|
|
Enabled = "enabled"
|
|
|
|
Disabled = "disabled"
|
|
|
|
Yes = "yes"
|
|
|
|
No = "no"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Bool returns t or f, depending on the value of b.
|
2022-10-13 22:11:02 +02:00
|
|
|
func Bool(value bool, yes, no string) string {
|
|
|
|
if value {
|
|
|
|
return yes
|
2022-09-28 09:01:17 +02:00
|
|
|
}
|
|
|
|
|
2022-10-13 22:11:02 +02:00
|
|
|
return no
|
2022-09-28 09:01:17 +02:00
|
|
|
}
|