MCPcopy Create free account
hub / github.com/Ringmast4r/PathFinder / ExportToJSON

Function ExportToJSON

main.go:3453–3463  ·  view source on GitHub ↗
(filename string, results []*ScanResult)

Source from the content-addressed store, hash-verified

3451}
3452
3453func ExportToJSON(filename string, results []*ScanResult) error {
3454 file, err := os.Create(filename)
3455 if err != nil {
3456 return err
3457 }
3458 defer file.Close()
3459
3460 encoder := json.NewEncoder(file)
3461 encoder.SetIndent("", " ")
3462 return encoder.Encode(results)
3463}
3464
3465func ExportToCSV(filename string, results []*ScanResult) error {
3466 file, err := os.Create(filename)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected