MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / marshalSpec

Function marshalSpec

cli/cmd/specs.go:187–194  ·  view source on GitHub ↗
(spec map[string]any)

Source from the content-addressed store, hash-verified

185}
186
187func marshalSpec(spec map[string]any) ([]byte, error) {
188 // All nil or empty values to be marshaled as null
189 if len(spec) == 0 {
190 return []byte(`null`), nil
191 }
192
193 return json.Marshal(spec)
194}

Callers 2

testPluginConnectionFunction · 0.70
initPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected