diff options
Diffstat (limited to 'cantree/test/t.go')
| -rw-r--r-- | cantree/test/t.go | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/cantree/test/t.go b/cantree/test/t.go new file mode 100644 index 0000000..203d6b9 --- /dev/null +++ b/cantree/test/t.go @@ -0,0 +1,17 @@ +package main + +import ( +	"fmt" +	"encoding/json" +	"io" +	"os" +) + +func main() { +	in, _ := os.Open("example.json") +	contents, _ := io.ReadAll(in) + +	var m map[string]interface{} +	json.Unmarshal(contents, &m) +	fmt.Printf("%v\n", m) +}
\ No newline at end of file | 
