mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-09-06 09:07:15 -04:00
Print blank line after invalid input in front.InputInt
This commit is contained in:
@@ -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