aboutsummaryrefslogtreecommitdiffstats
path: root/c_hardflip.go
diff options
context:
space:
mode:
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)
}