aboutsummaryrefslogtreecommitdiffstats
path: root/c_hardflip.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-20 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-20 20:20:20 +0100
commit7984a7e7073cae00a2d9dd5f37a32c3136ba14a4 (patch)
tree5770101ac639ecc801c2b7b20249a98c1d223cc3 /c_hardflip.go
parentfuck ye (diff)
downloadhardflip-7984a7e7073cae00a2d9dd5f37a32c3136ba14a4.tar.gz
hardflip-7984a7e7073cae00a2d9dd5f37a32c3136ba14a4.tar.bz2
hardflip-7984a7e7073cae00a2d9dd5f37a32c3136ba14a4.tar.xz
hardflip-7984a7e7073cae00a2d9dd5f37a32c3136ba14a4.tar.zst
hardflip-7984a7e7073cae00a2d9dd5f37a32c3136ba14a4.zip
refactor
Diffstat (limited to 'c_hardflip.go')
-rw-r--r--c_hardflip.go23
1 files changed, 8 insertions, 15 deletions
diff --git a/c_hardflip.go b/c_hardflip.go
index ca231f7..c3e871a 100644
--- a/c_hardflip.go
+++ b/c_hardflip.go
@@ -39,7 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/c_hardflip.go
- * Wed Dec 20 10:50:24 2023
+ * Wed Dec 20 16:34:51 2023
* Joe
*
* the main
@@ -47,29 +47,22 @@
package main
-import (
- // "os"
-
- "github.com/gdamore/tcell/v2"
-)
-
-type Data struct {
+// the main data structure, holds up everything important
+type HardData struct {
lhost *HostList
// dirs *DirList
- opts Opts
- s tcell.Screen
+ ui HardUI
+ opts HardOpts
data_dir string
- list_start int
}
func main() {
data_dir := c_get_data_dir()
- data := Data{
+ data := HardData{
c_load_data_dir(data_dir),
- Opts{true, true},
- nil,
+ HardUI{},
+ HardOpts{true, true},
data_dir,
- 0,
}
i_ui(&data)
}