constvar/const.go
@@ -17,3 +17,11 @@ BoolTypeTrue BoolType = 1 // true BoolTypeFalse BoolType = 2 // false ) func (slf BoolType) IsValid() bool { return slf == BoolTypeTrue || slf == BoolTypeFalse } func (slf BoolType) Bool() bool { return slf == BoolTypeTrue }