improve support for types of database pgsql

This commit is contained in:
John
2020-05-14 21:15:44 +08:00
parent 2fd5a1574a
commit d398b749d4
4 changed files with 42 additions and 12 deletions

View File

@ -3,12 +3,10 @@ package main
import (
"fmt"
"github.com/gogf/gf/encoding/gjson"
"math"
)
func main() {
body := "{\"id\": 413231383385427875}"
fmt.Println(math.MaxFloat32)
if dat, err := gjson.DecodeToJson(body); err == nil {
fmt.Println(dat.MustToJsonString())
}