package main

import (
	"fmt"
	"time"

	"github.com/zetamatta/nyagos/dos"
)

func main() {
	indent := 1
	var callback func(*dos.NetResource) bool

	callback = func(node *dos.NetResource) bool {
		name := node.RemoteName()
		now := time.Now()
		fmt.Printf("%02d:%02d:%02d %*s%s\n",
			now.Hour(),
			now.Minute(),
			now.Second(),
			indent*2,
			"",
			name)
		if len(name) <= 0 || name[0] != '\\' {
			indent++
			node.Enum(callback)
			indent--
		}
		return true
	}
	err := dos.WNetEnum(callback)
	if err != nil {
		println(err.Error())
	}
}

package main

import (
	"fmt"
	"github.com/zetamatta/nyagos/dos"
)

func main() {
	indent := 1
	var callback func(*dos.NetResource) bool

	callback = func(node *dos.NetResource) bool {
		fmt.Printf("%*s%s\n", indent*2, "", node.RemoteName())
		indent++
		node.Enum(callback)
		indent--
		return true
	}
	err := dos.WNetEnum(callback)
	if err != nil {
		println(err.Error())
	}
}

--- 
+++ 
@@ -2,6 +2,8 @@
 
 import (
 	"fmt"
+	"time"
+
 	"github.com/zetamatta/nyagos/dos"
 )
 
@@ -10,10 +12,20 @@
 	var callback func(*dos.NetResource) bool
 
 	callback = func(node *dos.NetResource) bool {
-		fmt.Printf("%*s%s\n", indent*2, "", node.RemoteName())
-		indent++
-		node.Enum(callback)
-		indent--
+		name := node.RemoteName()
+		now := time.Now()
+		fmt.Printf("%02d:%02d:%02d %*s%s\n",
+			now.Hour(),
+			now.Minute(),
+			now.Second(),
+			indent*2,
+			"",
+			name)
+		if len(name) <= 0 || name[0] != '\\' {
+			indent++
+			node.Enum(callback)
+			indent--
+		}
 		return true
 	}
 	err := dos.WNetEnum(callback)
Add benchmark code on dos/netest
