refactoring

This commit is contained in:
2019-02-10 23:05:31 +01:00
parent a1db7dd9ba
commit 28e62667e0
8 changed files with 223 additions and 145 deletions

15
Boolean.go Normal file
View File

@@ -0,0 +1,15 @@
package geagle
type Boolean string
func True() Boolean {
return "yes"
}
func False() Boolean {
return "no"
}
func (b Boolean) ToBool() bool {
return b == "yes" || b == "on"
}