aboutsummaryrefslogtreecommitdiffstats
path: root/c_josh.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-15 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-15 20:20:20 +0100
commitd92ded4595ec4282927eabafced33201529db098 (patch)
tree77ce749e3628bfa1194ab12f4bc0b09e3ccd64e2 /c_josh.go
parentgogo (diff)
downloadhardflip-d92ded4595ec4282927eabafced33201529db098.tar.gz
hardflip-d92ded4595ec4282927eabafced33201529db098.tar.bz2
hardflip-d92ded4595ec4282927eabafced33201529db098.tar.xz
hardflip-d92ded4595ec4282927eabafced33201529db098.tar.zst
hardflip-d92ded4595ec4282927eabafced33201529db098.zip
cool
Diffstat (limited to '')
-rw-r--r--c_josh.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/c_josh.go b/c_josh.go
index 0f999d2..3cbcae4 100644
--- a/c_josh.go
+++ b/c_josh.go
@@ -39,7 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* josh: src/c_josh.go
- * Thu, 14 Dec 2023 16:55:28 +0100
+ * Fri, 15 Dec 2023 12:45:58 +0100
* Joe
*
* the main
@@ -49,14 +49,18 @@ package main
import "fmt"
+func display_servers(lhost *HostList) {
+ curr := lhost.head
+ for curr != nil {
+ fmt.Println(curr.ID, curr.Folder + curr.Name)
+ curr = curr.next
+ }
+}
+
func main() {
var data_dir string
data_dir = c_get_data_dir()
lhost := c_load_data_dir(data_dir)
- curr := lhost.head
- for curr != nil {
- fmt.Println(*curr)
- curr = curr.next
- }
+ display_servers(lhost)
}