(typ string, actualLen, expectedLen int)
| 26 | } |
| 27 | |
| 28 | func formMinLenMsg(typ string, actualLen, expectedLen int) string { |
| 29 | return fmt.Sprintf("%s length is %d, should have at least %d chars", typ, actualLen, expectedLen) |
| 30 | } |
| 31 | |
| 32 | func formMaxLenDesc(typ string, actualLen, expectedLen int) string { |
| 33 | return fmt.Sprintf("%s length is %d, should have less than %d chars", typ, actualLen, expectedLen) |