MCPcopy Create free account
hub / github.com/6boris/web3-template / validate

Method validate

api/interface/web3/demo.pb.validate.go:283–295  ·  view source on GitHub ↗
(all bool)

Source from the content-addressed store, hash-verified

281}
282
283func (m *CreateUserRequest) validate(all bool) error {
284 if m == nil {
285 return nil
286 }
287
288 var errors []error
289
290 if len(errors) > 0 {
291 return CreateUserRequestMultiError(errors)
292 }
293
294 return nil
295}
296
297// CreateUserRequestMultiError is an error wrapping multiple validation errors
298// returned by CreateUserRequest.ValidateAll() if the designated constraints

Callers 2

ValidateMethod · 0.95
ValidateAllMethod · 0.95

Calls 1

Tested by

no test coverage detected