From b152d0fe07e75ff7a4303cadca25771e6237ca6c Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 27 Dec 2023 20:20:20 +0100 Subject: not quite clean --- c_hardflip.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'c_hardflip.go') 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) } -- cgit v1.2.3