MCPcopy Index your code
hub / github.com/coder/coder / marshal

Function marshal

codersdk/client_internal_test.go:383–390  ·  view source on GitHub ↗
(res any)

Source from the content-addressed store, hash-verified

381}
382
383func marshal(res any) string {
384 b, err := json.Marshal(res)
385 if err != nil {
386 panic(err)
387 }
388
389 return string(b)
390}

Callers 1

Test_readBodyAsErrorFunction · 0.85

Calls 1

MarshalMethod · 0.45

Tested by

no test coverage detected