MCPcopy Create free account
hub / github.com/diillson/chatcli / mustJSON

Function mustJSON

cli/scheduler_command.go:926–932  ·  view source on GitHub ↗

mustJSON / jsonDecode are tiny wrappers around encoding/json.

(v any)

Source from the content-addressed store, hash-verified

924
925// mustJSON / jsonDecode are tiny wrappers around encoding/json.
926func mustJSON(v any) string {
927 b, err := marshalJSON(v)
928 if err != nil {
929 return "{}"
930 }
931 return string(b)
932}
933
934// marshalJSON is the real marshaller; kept distinct so mustJSON above
935// can be unit-tested without importing encoding/json directly here.

Callers 2

handleScheduleCommandMethod · 0.85
handleWaitCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected