diff options
Diffstat (limited to 'c_hardflip.go')
-rw-r--r-- | c_hardflip.go | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/c_hardflip.go b/c_hardflip.go index 5e95a13..6261783 100644 --- a/c_hardflip.go +++ b/c_hardflip.go @@ -47,14 +47,10 @@ package main -import ( - "fmt" -) - // the main data structure, holds up everything important type HardData struct { ldirs *DirsList - // ui HardUI + ui HardUI opts HardOpts data_dir string } @@ -64,23 +60,23 @@ func main() { ldirs := c_load_data_dir(data_dir) data := HardData{ ldirs, - // HardUI{}, + HardUI{}, HardOpts{true, true}, data_dir, } - dir := data.ldirs.head - for dir != nil { - spaces := "" - for i := 0; uint16(i) < dir.Depth; i++ { - spaces += " " - } - fmt.Println(spaces, dir.ID, dir.Name + "/") - host := dir.lhost.head - for host != nil { - fmt.Println(spaces, " ", host.ID, host.Filename) - host = host.next - } - dir = dir.next - } - // i_ui(&data) + // dir := data.ldirs.head + // for dir != nil { + // spaces := "" + // for i := 0; uint16(i) < dir.Depth; i++ { + // spaces += " " + // } + // fmt.Println(spaces, dir.ID, dir.Name + "/") + // host := dir.lhost.head + // for host != nil { + // fmt.Println(spaces, " ", host.ID, host.Filename) + // host = host.next + // } + // dir = dir.next + // } + i_ui(&data) } |