✨ Special handling of json field
This commit is contained in:
parent
0da5efcafe
commit
16a0a9d20b
4 changed files with 112 additions and 30 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue