MCPcopy Index your code
hub / github.com/crashappsec/github-analyzer / SerializeFile

Function SerializeFile

pkg/futils/futils.go:41–48  ·  view source on GitHub ↗
(raw interface{}, writeLoc string)

Source from the content-addressed store, hash-verified

39}
40
41func SerializeFile(raw interface{}, writeLoc string) error {
42 output, err := json.MarshalIndent(raw, "", " ")
43 if err != nil {
44 log.Logger.Error(err)
45 return err
46 }
47 return ioutil.WriteFile(writeLoc, output, 0644)
48}

Callers 4

AuditScrapingFunction · 0.92
SummarizeMethod · 0.92
runCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected