~wrycode/DWCHelper

179b92f1ca8f2c92b9b8248fc5d363ba1c1ef52a — Nick Econopouly 1 year, 5 days 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 @@ func inputNumber (first int, second int, r io.Reader) int {
// 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 @@ func Prompt(ask bool, s string) {
	}
}

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