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

Method joinReason

x/errors/validation/error.go:49–59  ·  view source on GitHub ↗
(reason string)

Source from the content-addressed store, hash-verified

47}
48
49func (e *FieldError[T]) joinReason(reason string) {
50 if reason == "" {
51 return
52 }
53
54 if e.Reason == "" {
55 e.Reason = reason
56 } else {
57 e.Reason += ", " + reason
58 }
59}
60
61// Func accepts a variadic number of functions which accept the value of the field
62// and return a string message if the value is invalid.

Callers 1

FuncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected