diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-02 01:48:53 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-02 01:48:53 +0200 |
| commit | ba96c6fae2ca3ea3399934ffd010cecfbaec273c (patch) | |
| tree | c63974f02489ca413cd933741da124a0f7b387f5 /utils.go | |
| parent | 35bbd18bf8943a20784d676cb6153c6a826f2d93 (diff) | |
New Input method
Diffstat (limited to 'utils.go')
| -rw-r--r-- | utils.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |
