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

Method Struct

context/context.go:2695–2695  ·  view source on GitHub ↗
(interface{})

Source from the content-addressed store, hash-verified

2693// ReadJSON, ReadMsgPack, ReadXML, ReadYAML, ReadForm, ReadQuery, ReadBody and e.t.c.
2694type Validator interface {
2695 Struct(interface{}) error
2696 // If community asks for more than a struct validation on JSON, XML, MsgPack, Form, Query and e.t.c
2697 // then we should add more methods here, alternative approach would be to have a
2698 // `Validator:Validate(interface{}) error` and a map[reflect.Kind]Validator instead.

Callers 6

ValidateMethod · 0.65
TestStructFunction · 0.65
TestStructErrorHandlerFunction · 0.65
TestStructFieldsSorterFunction · 0.65
attachInjectorMethod · 0.65
PartyConfigureMethod · 0.65

Implementers 1

Containerhero/container.go

Calls

no outgoing calls

Tested by 3

TestStructFunction · 0.52
TestStructErrorHandlerFunction · 0.52
TestStructFieldsSorterFunction · 0.52