MCPcopy
hub / github.com/caddyserver/certmagic / mustJSON

Function mustJSON

config_test.go:150–156  ·  view source on GitHub ↗
(val any)

Source from the content-addressed store, hash-verified

148}
149
150func mustJSON(val any) []byte {
151 result, err := json.Marshal(val)
152 if err != nil {
153 panic("marshaling JSON: " + err.Error())
154 }
155 return result
156}

Callers 1

TestSaveCertResourceFunction · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…