2022-09-28 09:01:17 +02:00
|
|
|
package report
|
|
|
|
|
|
|
|
const (
|
2023-03-09 15:12:10 +01:00
|
|
|
Enabled = "Enabled"
|
|
|
|
Disabled = ""
|
|
|
|
Yes = "Yes"
|
|
|
|
No = ""
|
2022-09-28 09:01:17 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
|
|
}
|