diff options
author | Joe <rbo@gmx.us> | 2024-01-05 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-05 20:20:20 +0100 |
commit | b86e613a96d23e90668b5f9aabd2a38b76c30fa4 (patch) | |
tree | eac72d2b8280203651a74b515a96c12edc891690 /c_hardflip.go | |
parent | googo (diff) | |
download | hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.tar.gz hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.tar.bz2 hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.tar.xz hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.tar.zst hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.zip |
now draw litems list
Diffstat (limited to 'c_hardflip.go')
-rw-r--r-- | c_hardflip.go | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/c_hardflip.go b/c_hardflip.go index 2181207..7e75444 100644 --- a/c_hardflip.go +++ b/c_hardflip.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_hardflip.go - * Fri Jan 05 14:41:26 2024 + * Fri Jan 05 16:10:29 2024 * Joe * * the main @@ -51,12 +51,11 @@ package main -import "fmt" +// import "fmt" // the main data structure, holds up everything important type HardData struct { litems *ItemsList - ptr *ItemsNode ldirs *DirsList ui HardUI opts HardOpts @@ -64,7 +63,7 @@ type HardData struct { } func main() { - // TODO: delete data.ptr | replace everything ui with litems + // TODO: replace everything ui with litems data_dir := c_get_data_dir() opts := HardOpts{true, true, false} ldirs := c_load_data_dir(data_dir, opts) @@ -103,15 +102,14 @@ func main() { // fmt.Println(host.ID, host.Name, "HOST") // } // } - for item := litems.head; item != nil ; item = item.next { - if item.is_dir() == true { - fmt.Println(item.ID, item.Dirs.Name) - } else { - fmt.Println(item.ID, item.Host.Name) - } - } + // for item := litems.head; item != nil; item = item.next { + // if item.is_dir() == true { + // fmt.Println(item.ID, item.Dirs.Name) + // } else { + // fmt.Println(item.ID, item.Host.Name) + // } + // } - return // PERF: test performance over a large amount of hosts with litems i_ui(&data) } |