Fix tests

This commit is contained in:
erthalion
2018-07-09 11:24:08 +02:00
parent f9c10b3d00
commit 332db3bbda
3 changed files with 33 additions and 36 deletions
+10
View File
@@ -127,6 +127,16 @@ func Coalesce(val, defaultVal string) string {
return val
}
func True() *bool {
b := true
return &b
}
func False() *bool {
b := false
return &b
}
func IsTrue(value *bool) bool {
return value != nil && *value
}