MCPcopy
hub / github.com/sourcegraph/checkup / mustWriteJSON

Function mustWriteJSON

storage/github/github_test.go:28–32  ·  view source on GitHub ↗
(w io.Writer, data interface{})

Source from the content-addressed store, hash-verified

26)
27
28func mustWriteJSON(w io.Writer, data interface{}) {
29 if err := json.NewEncoder(w).Encode(data); err != nil {
30 panic(err)
31 }
32}
33
34func base64Encoded(input []byte) string {
35 return base64.StdEncoding.EncodeToString(input)

Callers 1

withGitHubServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected