Special handling of json field

This commit is contained in:
Dan Jones 2024-01-30 23:40:47 -06:00
commit 16a0a9d20b
4 changed files with 112 additions and 30 deletions

View file

@ -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},