aboutsummaryrefslogtreecommitdiffstats
path: root/c_hardflip.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-04 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-04 20:20:20 +0100
commitda6ebd7e410b6c4564d8eba79f88a1d67aabe97f (patch)
treed45053bc11ba3426278602a7632e644ba3eff0eb /c_hardflip.go
parentnothing's great retard boy (diff)
downloadhardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.tar.gz
hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.tar.bz2
hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.tar.xz
hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.tar.zst
hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.zip
tryna make it work
Diffstat (limited to '')
-rw-r--r--c_hardflip.go50
1 files changed, 26 insertions, 24 deletions
diff --git a/c_hardflip.go b/c_hardflip.go
index 4364da8..c2270d8 100644
--- a/c_hardflip.go
+++ b/c_hardflip.go
@@ -62,9 +62,9 @@ type HardData struct {
data_dir string
}
-type HardPtr interface {
- is_dir() bool
-}
+// type HardPtr interface {
+// is_dir() bool
+// }
func main() {
data_dir := c_get_data_dir()
@@ -78,27 +78,29 @@ func main() {
data_dir,
}
- for sel := ldirs.head; sel != nil ; sel = sel.next {
- spaces := ""
- for i := 0; i < int(sel.Depth - 1) * 2; i++ {
- spaces += " "
- }
- if sel.is_dir() == true {
- fmt.Print(spaces, "DIR ", sel.ID, " ")
- }
- fmt.Println(sel.Name)
- for sel := sel.lhost.head; sel != nil; sel = sel.next {
- spaces := ""
- for i := 0; i < int(sel.Parent.Depth - 1) * 2; i++ {
- spaces += " "
- }
- spaces += " "
- if sel.is_dir() == false {
- fmt.Print(spaces, "HOST ", sel.ID, " ")
- }
- fmt.Println(sel.Name)
- }
- }
+
+ // var ptr HardPtr
+ // for ptr = ldirs.head; ptr != nil ; ptr = ptr.next {
+ // spaces := ""
+ // for i := 0; i < int(ptr.Depth - 1) * 2; i++ {
+ // spaces += " "
+ // }
+ // if ptr.is_dir() == true {
+ // fmt.Print(spaces, "DIR ", ptr.ID, " ")
+ // }
+ // fmt.Println(ptr.Name)
+ // for ptr = ptr.lhost.head; ptr != nil; ptr = ptr.next {
+ // spaces := ""
+ // for i := 0; i < int(ptr.Parent.Depth - 1) * 2; i++ {
+ // spaces += " "
+ // }
+ // spaces += " "
+ // if ptr.is_dir() == false {
+ // fmt.Print(spaces, "HOST ", ptr.ID, " ")
+ // }
+ // fmt.Println(ptr.Name)
+ // }
+ // }
// for dir := ldirs.head; dir != nil ; dir = dir.next {
// for host := dir.lhost.head; host != nil; host = host.next {
// fmt.Println(host.ID, host.Name, "HOST")