MCPcopy Create free account
hub / github.com/bufbuild/buf / printFileAnnotationAsJSON

Function printFileAnnotationAsJSON

private/bufpkg/bufanalysis/print.go:231–238  ·  view source on GitHub ↗
(buffer *bytes.Buffer, f FileAnnotation)

Source from the content-addressed store, hash-verified

229}
230
231func printFileAnnotationAsJSON(buffer *bytes.Buffer, f FileAnnotation) error {
232 data, err := json.Marshal(newExternalFileAnnotation(f))
233 if err != nil {
234 return err
235 }
236 _, _ = buffer.Write(data)
237 return nil
238}
239
240func printFileAnnotationAsGithubActions(buffer *bytes.Buffer, f FileAnnotation) error {
241 if f == nil {

Callers

nothing calls this directly

Calls 3

MarshalMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…