mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
fix issue in example of package gjson
This commit is contained in:
@ -19,6 +19,7 @@ func Example_conversionNormalFormats() {
|
||||
"array" : ["John", "Ming"]
|
||||
}
|
||||
}`
|
||||
|
||||
if j, err := gjson.DecodeToJson(data); err != nil {
|
||||
panic(err)
|
||||
} else {
|
||||
@ -48,8 +49,8 @@ func Example_conversionNormalFormats() {
|
||||
// YAML:
|
||||
// users:
|
||||
// array:
|
||||
// - John
|
||||
// - Ming
|
||||
// - John
|
||||
// - Ming
|
||||
// count: 1
|
||||
//
|
||||
// ======================
|
||||
|
||||
Reference in New Issue
Block a user