diff options
author | Joe <rbo@gmx.us> | 2023-12-15 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-15 20:20:20 +0100 |
commit | d92ded4595ec4282927eabafced33201529db098 (patch) | |
tree | 77ce749e3628bfa1194ab12f4bc0b09e3ccd64e2 /c_josh.go | |
parent | gogo (diff) | |
download | hardflip-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.go | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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) } |