refactoring
This commit is contained in:
15
Boolean.go
Normal file
15
Boolean.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user