完成一个简版JSON树构造
This commit is contained in:
20
json/json_test.go
Normal file
20
json/json_test.go
Normal file
@ -0,0 +1,20 @@
|
||||
// Package json...
|
||||
//
|
||||
// Description : json...
|
||||
//
|
||||
// Author : go_developer@163.com<张德满>
|
||||
//
|
||||
// Date : 2021-03-10 11:44 下午
|
||||
package json
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestJSON(t *testing.T) {
|
||||
tree := NewDynamicJSON()
|
||||
tree.SetValue("extra.height.value", 180)
|
||||
tree.SetValue("extra.height.unit", "cm")
|
||||
fmt.Println(tree.root)
|
||||
}
|
Reference in New Issue
Block a user