(typ string, expectedLen int, toCheck string)
| 66 | } |
| 67 | |
| 68 | func validateMinLen(typ string, expectedLen int, toCheck string) (*lint.Issue, bool) { |
| 69 | actualLen := len(toCheck) |
| 70 | if actualLen >= expectedLen { |
| 71 | return nil, true |
| 72 | } |
| 73 | |
| 74 | desc := formMinLenMsg(typ, actualLen, expectedLen) |
| 75 | return lint.NewIssue(desc), false |
| 76 | } |
| 77 | |
| 78 | func validateMaxLen(typ string, expectedLen int, toCheck string) (*lint.Issue, bool) { |
| 79 | if expectedLen < 0 { |