MCPcopy Create free account
hub / github.com/encodeous/nylon / printJSON

Function printJSON

cmd/render.go:166–170  ·  view source on GitHub ↗
(resp *protocol.IpcResponse)

Source from the content-addressed store, hash-verified

164}
165
166func printJSON(resp *protocol.IpcResponse) {
167 m := protojson.MarshalOptions{Indent: " ", EmitUnpopulated: true}
168 data, _ := m.Marshal(resp)
169 fmt.Println(string(data))
170}

Callers 3

status.goFile · 0.85
probe.goFile · 0.85
reload.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected