aboutsummaryrefslogtreecommitdiffstats
path: root/c_hardflip.go
diff options
context:
space:
mode:
Diffstat (limited to 'c_hardflip.go')
-rw-r--r--c_hardflip.go20
1 files changed, 16 insertions, 4 deletions
diff --git a/c_hardflip.go b/c_hardflip.go
index 1e5bed9..0e2269d 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
- * Tue Dec 26 11:11:55 2023
+ * Tue Dec 26 14:40:37 2023
* Joe
*
* the main
@@ -49,7 +49,6 @@ package main
import (
"fmt"
- "os"
)
// the main data structure, holds up everything important
@@ -69,7 +68,20 @@ func main() {
HardOpts{true, true},
data_dir,
}
- os.Exit(0)
- fmt.Println(data)
+ dir := data.ldirs.head
+ for dir != nil {
+ spaces := ""
+ for i := 0; uint16(i) < dir.Depth; i++ {
+ spaces += " "
+ }
+ fmt.Println(spaces, dir.ID, dir.Name)
+ host := dir.lhost.head
+ for host != nil {
+ fmt.Println(spaces, " ", host.ID, host.Name)
+ host = host.next
+ }
+ fmt.Println()
+ dir = dir.next
+ }
// i_ui(&data)
}