package main

import (
	"fmt"
	"holux"
	"log"
)

func main() {
	c, err := holux.Connect()

	if err != nil {
		log.Println(err)
		return
	}
	c.Hello()
	defer c.Bye()

	index, err := c.GetIndex()
	if err != nil {
		log.Fatalf("Got error %v, arborting", err)
	}

	for _, row := range index {
		fmt.Println(row)
	}
}

package main

import (
	"fmt"
	"holux"
)

func main() {
	c, err := holux.Connect()

	if err != nil {
		// TODO LOG
		fmt.Println(err)
		return
	}
	c.Hello()
	defer c.Bye()

	index, err := c.GetIndex()
	if err != nil {
		fmt.Printf("Got error %v, arborting", err)
	}
	
	for _, row := range index {
		fmt.Println(row)
	}
}

--- 
+++ 
@@ -3,14 +3,14 @@
 import (
 	"fmt"
 	"holux"
+	"log"
 )
 
 func main() {
 	c, err := holux.Connect()
 
 	if err != nil {
-		// TODO LOG
-		fmt.Println(err)
+		log.Println(err)
 		return
 	}
 	c.Hello()
@@ -18,9 +18,9 @@
 
 	index, err := c.GetIndex()
 	if err != nil {
-		fmt.Printf("Got error %v, arborting", err)
+		log.Fatalf("Got error %v, arborting", err)
 	}
-	
+
 	for _, row := range index {
 		fmt.Println(row)
 	}
Use log for debug printing