179b92f1ca8f2c92b9b8248fc5d363ba1c1ef52a — Nick Econopouly 5 months ago eefcd76
Add PrintHLine()
1 files changed, 11 insertions(+), 2 deletions(-)

M lib.go
M lib.go => lib.go +11 -2
@@ 80,8 80,11 @@
 // printStringSlice prints a []string, surrounding each string with
 // quotes
 func printStringSlice(terms []string) {
-	for _, v := range terms {
-		fmt.Printf("\"%v\" \n",v)
+	for i, v := range terms {
+		fmt.Printf("\"%v\" ",v)
+		if i % 3 == 0 {
+			fmt.Println()
+		}
 	}
 	fmt.Println()
 }


@@ 110,3 113,9 @@
 	}
 }
 
+// PrintHLine draws one or more horizontal lines
+func PrintHLine(i int) {
+	for n := 0; n < i; n = n +1 {
+		fmt.Println("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")
+	}
+}