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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user