summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-10-02 01:48:53 +0200
committerNikolaus Gotsche <n@softwarefools.com>2018-10-02 01:48:53 +0200
commitba96c6fae2ca3ea3399934ffd010cecfbaec273c (patch)
treec63974f02489ca413cd933741da124a0f7b387f5 /utils.go
parent35bbd18bf8943a20784d676cb6153c6a826f2d93 (diff)
New Input method
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils.go b/utils.go
index c559b2e..312bc1f 100644
--- a/utils.go
+++ b/utils.go
@@ -70,6 +70,14 @@ func checkErr(err error) {
}
}
+func strLines(in []string) (out string){
+ out = ""
+ for _,s := range in {
+ out = fmt.Sprintf("%s%s\n",out,s)
+ }
+ return
+}
+
func getInput(quest string) string {
fmt.Print(quest)
in := bufio.NewReader(os.Stdin)