mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-10-27 05:39:58 -04:00
Print blank line after invalid input in front.InputInt
This commit is contained in:
1 parent
cc379d407c
commit
9ee213eeb4
1 file changed
+1
@@ -46,6 +46,7 @@ func InputInt(prompt string, min, max int) int {
|
|||||||
if err == nil && (userInput >= min || min < 0) && (userInput <= max || max < 0) {
|
if err == nil && (userInput >= min || min < 0) && (userInput <= max || max < 0) {
|
||||||
return userInput
|
return userInput
|
||||||
}
|
}
|
||||||
|
fmt.Println()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user