MCPcopy Index your code
hub / github.com/jetify-com/devbox / toJSON

Function toJSON

internal/shellgen/generate.go:155–161  ·  view source on GitHub ↗
(a any)

Source from the content-addressed store, hash-verified

153}
154
155func toJSON(a any) string {
156 data, err := cuecfg.MarshalJSON(a)
157 if err != nil {
158 panic(err)
159 }
160 return string(data)
161}
162
163var templateFuncs = template.FuncMap{
164 "json": toJSON,

Callers

nothing calls this directly

Calls 1

MarshalJSONFunction · 0.92

Tested by

no test coverage detected