Message rush
This commit is contained in:
parent
5d6a88c960
commit
ac97ebdbc0
Binary file not shown.
@ -13,7 +13,7 @@ func GetNumber(message string) (float64, error) {
|
|||||||
validate := func(input string) error {
|
validate := func(input string) error {
|
||||||
_, err := strconv.ParseFloat(input, 64)
|
_, err := strconv.ParseFloat(input, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("Invalid number")
|
return errors.New("Некорректное число. Пожалуйста, введите числовое значение.")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user