summaryrefslogtreecommitdiff
path: root/cantree/test/t.go
diff options
context:
space:
mode:
Diffstat (limited to 'cantree/test/t.go')
-rw-r--r--cantree/test/t.go17
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