MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / jsonError

Function jsonError

wasm/main.go:168–171  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

166}
167
168func jsonError(msg string) string {
169 b, _ := json.Marshal(map[string]any{"error": msg})
170 return string(b)
171}
172
173func jsonResult(v any) string {
174 b, _ := json.MarshalIndent(v, "", " ")

Callers 5

parseFunction · 0.85
formatFunction · 0.85
lintFunction · 0.85
validateFunction · 0.85
analyzeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected