aboutsummaryrefslogtreecommitdiffstats
path: root/c_hardflip.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-26 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-26 20:20:20 +0100
commitfbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3 (patch)
tree884f04c0ca73a2f165a0264bf5062b433ccf7a1a /c_hardflip.go
parentgood (diff)
downloadhardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.tar.gz
hardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.tar.bz2
hardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.tar.xz
hardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.tar.zst
hardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.zip
fine for now
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)
}