blob: bc2d60ef6cfae527d5a266b3747ac4073ca1dab4 (
plain) (
tree)
|
|
package model
type BooleanNode struct {
Value bool
}
func (n BooleanNode) Type() NodeType {
return BooleanType
}
func (n *BooleanNode) MarshalJSON() ([]byte, error) {
if n.Value {
return []byte("true"), nil
}
return []byte("false"), nil
}
|