gr filetree hard

This commit is contained in:
bel
2022-02-14 22:12:26 -07:00
parent f0f6f2c842
commit 989a83eb02
6 changed files with 137 additions and 472 deletions

View File

@@ -36,10 +36,42 @@ func main() {
return oneT
}
data := map[string]interface{}{
"Title": "my title here",
"ID": "my-id-here",
"PID": "my-pid-here",
"PTitle": "my parent title here",
"This": map[string]interface{}{
"ID": "id00/id11",
"Title": "title11",
"PID": "id00",
"PTitle": "title00",
},
"Tree": []map[string]interface{}{
map[string]interface{}{
"ID": "id00",
"Title": "title00",
"PID": "",
"PTitle": "",
},
map[string]interface{}{
"ID": "id00/id10",
"Title": "title10",
},
map[string]interface{}{
"ID": "id00/id11",
"Title": "title11",
"PID": "",
"PTitle": "",
},
map[string]interface{}{
"ID": "id00/id11/id20",
"Title": "title20",
"PID": "",
"PTitle": "",
},
map[string]interface{}{
"ID": "id01",
"Title": "title01",
"PID": "",
"PTitle": "",
},
},
}
if err := recursePwd(func(p string) error {
switch path.Ext(p) {