✨ Special handling of json field
This commit is contained in:
parent
0da5efcafe
commit
16a0a9d20b
4 changed files with 112 additions and 30 deletions
|
|
@ -27,6 +27,7 @@ func TestMeta(t *testing.T) {
|
|||
newVal any
|
||||
}{
|
||||
{"int", "num", 42, "@num 42", nil, 42},
|
||||
{"int64", "num", int64(42), "@num 42", nil, int(42)},
|
||||
{"float", "num", 42.13, "@num 42.13", nil, 42.13},
|
||||
{"string", "word", "hello", "@word hello", nil, "hello"},
|
||||
{"json number", "num", json.Number("42.13"), "@num 42.13", nil, 42.13},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue