marshalVSAReportJSON converts VSAReport to JSON
(report VSAReport)
| 1370 | |
| 1371 | // marshalVSAReportJSON converts VSAReport to JSON |
| 1372 | func marshalVSAReportJSON(report VSAReport) ([]byte, error) { |
| 1373 | data, err := json.MarshalIndent(&report, "", " ") |
| 1374 | if err != nil { |
| 1375 | return nil, fmt.Errorf("failed to marshal VSA report to JSON: %w", err) |
| 1376 | } |
| 1377 | return data, nil |
| 1378 | } |
| 1379 | |
| 1380 | // marshalVSAReportYAML converts VSAReport to YAML |
| 1381 | func marshalVSAReportYAML(report VSAReport) ([]byte, error) { |
no test coverage detected