MCPcopy Create free account
hub / github.com/kataras/iris / Length

Method Length

x/errors/validation/string.go:29–32  ·  view source on GitHub ↗

Length adds an error if the string length is not in the given range.

(min, max int)

Source from the content-addressed store, hash-verified

27
28// Length adds an error if the string length is not in the given range.
29func (e *StringError) Length(min, max int) *StringError {
30 e.Func(StringLength(min, max))
31 return e
32}
33
34// NotEmpty accepts any string and returns a message if the value is empty.
35func NotEmpty(s string) string {

Callers

nothing calls this directly

Calls 2

StringLengthFunction · 0.85
FuncMethod · 0.80

Tested by

no test coverage detected