diff --git a/value-bool.go b/value-bool.go index cbe42ed16309a0081b3f597881b7f0bebde824a8..55083215f361f5b34f617649493c9702abeeda2d 100644 --- a/value-bool.go +++ b/value-bool.go @@ -36,6 +36,14 @@ func NewBoolValue(raw string) (BoolValue, error) { return bv, err } +func NewTrueBoolValue() BoolValue { + return BoolValue{value: true, valid: true, raw: "true"} +} + +func NewFalseBoolValue() BoolValue { + return BoolValue{value: false, valid: true, raw: "false"} +} + // parseAndValidate processes and validates the raw string func (p *BoolValue) parseAndValidate() error { switch strings.ToLower(p.raw) {