MCPcopy
hub / github.com/revel/revel / MinSize

Struct MinSize

validators.go:149–151  ·  view source on GitHub ↗

MinSize requires an array or string to be at least a given length.

Source from the content-addressed store, hash-verified

147
148// MinSize requires an array or string to be at least a given length.
149type MinSize struct {
150 Min int
151}
152
153func ValidMinSize(min int) MinSize {
154 return MinSize{min}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected