summaryrefslogtreecommitdiff
path: root/cantree/test/t.go
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2023-11-25 12:40:23 -0800
committerkaa <kaa@disroot.org>2023-11-25 12:40:23 -0800
commit06b553ab3f6355e643049dad0ccb570a0bc0d613 (patch)
treeef758a08c2dea66085f11c333984f5e96d4ab444 /cantree/test/t.go
parent3df21ef899aafd2461570687ef3b9b1c9f9a555e (diff)
WIP Directory traversal using go.HEADmaster
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