Let a struct field's Go type type a bare number or boolean in its tag, and offer only a datatype that holds a refused column's number

This commit is contained in:
2026-10-08 11:57:06 +02:00
committed by Lillem4n
parent 9e392d02fd
commit 71c5039f04
5 changed files with 39 additions and 30 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
)
// Value is a JSON value that only Decode, String and Object make, so a template never compiles
// from a value encoding/json decoded with its numbers as float64.
// from a value encoding/json decoded with its numbers as float64. The zero Value is JSON null.
type Value struct{ v any }
// Decode decodes one JSON value, keeping each number as the json.Number it is written as.