(input string)
| 728 | } |
| 729 | |
| 730 | func validPortNumber(input string) error { |
| 731 | port, e := strconv.ParseInt(input, 10, 64) |
| 732 | if e == nil && port == 0 { |
| 733 | return errors.New("Please use a non empty port!") |
| 734 | } |
| 735 | return e |
| 736 | } |
| 737 | |
| 738 | func validUrl(input string) error { |
| 739 | _, e := url.Parse(input) |
no test coverage detected
searching dependent graphs…