MCPcopy
hub / github.com/revel/revel / MaxSize

Struct MaxSize

validators.go:173–175  ·  view source on GitHub ↗

MaxSize requires an array or string to be at most a given length.

Source from the content-addressed store, hash-verified

171
172// MaxSize requires an array or string to be at most a given length.
173type MaxSize struct {
174 Max int
175}
176
177func ValidMaxSize(max int) MaxSize {
178 return MaxSize{max}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected