MCPcopy
hub / github.com/gogo/protobuf / Write

Function Write

vanity/command/command.go:150–161  ·  view source on GitHub ↗
(resp *plugin.CodeGeneratorResponse)

Source from the content-addressed store, hash-verified

148}
149
150func Write(resp *plugin.CodeGeneratorResponse) {
151 g := generator.New()
152 // Send back the results.
153 data, err := proto.Marshal(resp)
154 if err != nil {
155 g.Error(err, "failed to marshal output proto")
156 }
157 _, err = os.Stdout.Write(data)
158 if err != nil {
159 g.Error(err, "failed to write output proto")
160 }
161}

Callers 7

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls 4

NewFunction · 0.92
MarshalFunction · 0.92
ErrorMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…