Skip to content
Snippets Groups Projects
Verified Commit 9a44d7cf authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

feat: new function for create boolValues #18

parent 10d8b039
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment