aboutsummaryrefslogtreecommitdiffstats
path: root/c_hardflip.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-27 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-27 20:20:20 +0100
commitb152d0fe07e75ff7a4303cadca25771e6237ca6c (patch)
treeabfb8a9ee7d23c7ddf037f8fa4a12b99305999b9 /c_hardflip.go
parenthow (diff)
downloadhardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.gz
hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.bz2
hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.xz
hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.zst
hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.zip
not quite clean
Diffstat (limited to 'c_hardflip.go')
-rw-r--r--c_hardflip.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/c_hardflip.go b/c_hardflip.go
index f0c663f..8155af0 100644
--- a/c_hardflip.go
+++ b/c_hardflip.go
@@ -47,8 +47,11 @@
package main
+import "fmt"
+
// the main data structure, holds up everything important
type HardData struct {
+ litems *ItemsList
ldirs *DirsList
ui HardUI
opts HardOpts
@@ -58,8 +61,9 @@ type HardData struct {
func main() {
data_dir := c_get_data_dir()
opts := HardOpts{true, true, false}
- ldirs := c_load_data_dir(data_dir, opts)
+ litems, ldirs := c_load_data_dir(data_dir, opts)
data := HardData{
+ litems,
ldirs,
HardUI{},
opts,
@@ -79,5 +83,7 @@ func main() {
// }
// dir = dir.next
// }
- i_ui(&data)
+ return
+ fmt.Println(data)
+ // i_ui(&data)
}