MaxSize requires an array or string to be at most a given length.
| 171 | |
| 172 | // MaxSize requires an array or string to be at most a given length. |
| 173 | type MaxSize struct { |
| 174 | Max int |
| 175 | } |
| 176 | |
| 177 | func ValidMaxSize(max int) MaxSize { |
| 178 | return MaxSize{max} |
nothing calls this directly
no outgoing calls
no test coverage detected