You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package utils
-
- import (
- "bytes"
- "encoding/json"
- )
-
- func JsonMarshal(interface{}) {
-
- }
-
- // 不科学计数法
- func JsonDecode(data []byte, v interface{}) error {
- d := json.NewDecoder(bytes.NewReader(data))
- d.UseNumber()
- return d.Decode(v)
- }
|