MCPcopy
hub / github.com/revel/revel / Length

Struct Length

validators.go:197–199  ·  view source on GitHub ↗

Length requires an array or string to be exactly a given length.

Source from the content-addressed store, hash-verified

195
196// Length requires an array or string to be exactly a given length.
197type Length struct {
198 N int
199}
200
201func ValidLength(n int) Length {
202 return Length{n}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected