(typ string, expectedLen int, toCheck string)
| 60 | } |
| 61 | |
| 62 | func validateMinLen(typ string, expectedLen int, toCheck string) (*lint.Issue, bool) { |
| 63 | actualLen := len(toCheck) |
| 64 | if actualLen >= expectedLen { |
| 65 | return nil, true |
| 66 | } |
| 67 | |
| 68 | desc := formMinLenMsg(typ, actualLen, expectedLen) |
| 69 | return lint.NewIssue(desc), false |
| 70 | } |
| 71 | |
| 72 | func validateMaxLen(typ string, expectedLen int, toCheck string) (*lint.Issue, bool) { |
| 73 | if expectedLen < 0 { |