MCPcopy Create free account
hub / github.com/goadesign/goa / Read

Method Read

http/encoding.go:197–202  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

195var errEncodeNotCalled = errors.New("RequestEncoder: Encode must be called prior to reading")
196
197func (je *jsonEncoder) Read(b []byte) (n int, err error) {
198 if len(je.b) == 0 {
199 return 0, errEncodeNotCalled
200 }
201 return je.r.Read(b)
202}
203
204func (*jsonEncoder) Close() (err error) { return nil }
205

Callers 15

NewIDFunction · 0.45
NewTraceIDFunction · 0.45
UUIDMethod · 0.45
clientTypeFunction · 0.45
serverFileFunction · 0.45
ServerEncodeDecodeFileFunction · 0.45
endpointParserFunction · 0.45
pathSectionsFunction · 0.45
ExampleServerFunction · 0.45
dummyMultipartFileFunction · 0.45
service_data.goFile · 0.45

Calls

no outgoing calls

Tested by 2

TestPayloadConstructorFunction · 0.36