MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / emitResp

Function emitResp

protoc-gen-openapiv2/main.go:261–269  ·  view source on GitHub ↗
(resp *pluginpb.CodeGeneratorResponse)

Source from the content-addressed store, hash-verified

259}
260
261func emitResp(resp *pluginpb.CodeGeneratorResponse) {
262 buf, err := proto.Marshal(resp)
263 if err != nil {
264 grpclog.Fatal(err)
265 }
266 if _, err := os.Stdout.Write(buf); err != nil {
267 grpclog.Fatal(err)
268 }
269}
270
271// parseReqParam parses a CodeGeneratorRequest parameter and adds the
272// extracted values to the given FlagSet and pkgMap. Returns a non-nil

Callers 2

emitFilesFunction · 0.85
emitErrorFunction · 0.85

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected