diff options
author | kaa <kaa@disroot.org> | 2023-11-25 12:40:23 -0800 |
---|---|---|
committer | kaa <kaa@disroot.org> | 2023-11-25 12:40:23 -0800 |
commit | 06b553ab3f6355e643049dad0ccb570a0bc0d613 (patch) | |
tree | ef758a08c2dea66085f11c333984f5e96d4ab444 /cantree/test/t.go | |
parent | 3df21ef899aafd2461570687ef3b9b1c9f9a555e (diff) |
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 |