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

Function JSONString

coderd/runtimeconfig/entry.go:98–104  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

96}
97
98func JSONString(v any) string {
99 s, err := json.Marshal(v)
100 if err != nil {
101 return "decode failed: " + err.Error()
102 }
103 return string(s)
104}

Callers 3

StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92

Calls 2

MarshalMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected