Fix values

This commit is contained in:
Neemek 2025-03-16 20:09:36 +01:00
parent ae7d6c5359
commit 5edad332cd
Signed by: neemek
GPG key ID: 28360A8951CD0E9B
19 changed files with 611 additions and 331 deletions

View file

@ -101,7 +101,7 @@ func (n StringNode) String() string {
}
type NumberNode struct {
value NumberValue
value float64
}
func (n NumberNode) Type() NodeType {
@ -109,7 +109,7 @@ func (n NumberNode) Type() NodeType {
}
func (n NumberNode) String() string {
return strconv.FormatFloat(float64(n.value), 'g', -1, NumberSize)
return strconv.FormatFloat(n.value, 'g', -1, NumberSize)
}
// ListNode a list or sequence of values (items)