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

@ -33,6 +33,8 @@ func (m Meta) MarshalText() ([]byte, error) {
buff.WriteString(v)
case int:
buff.WriteString(strconv.Itoa(v))
case int64:
buff.WriteString(strconv.FormatInt(v, 10))
case float64:
buff.WriteString(strconv.FormatFloat(v, 'f', -1, 64))
case json.Number: