Function
emitResp
(resp *pluginpb.CodeGeneratorResponse)
Source from the content-addressed store, hash-verified
| 259 | } |
| 260 | |
| 261 | func 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 |
Tested by
no test coverage detected