Update scan.go

This commit is contained in:
公明 2025-04-10 18:05:56 +08:00 committed by GitHub
parent 434ed65d3e
commit 20af47fd69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,12 +23,14 @@ type Result struct {
RespBodyB string `json:"respBodyB"`
Result string `json:"result"`
Reason string `json:"reason"`
Confidence string `json:"confidence"`
}
// 扫描结果
type ScanResult struct {
Res string `json:"res"`
Reason string `json:"reason"`
Confidence string `json:"confidence"`
}
func scan() {
@ -78,6 +80,7 @@ func scan() {
} else {
resultOutput.Result = scanR.Res
resultOutput.Reason = scanR.Reason
resultOutput.Confidence = scanR.Confidence
jsonData, err := json.Marshal(resultOutput)
if err != nil {
log.Fatalf("Error marshaling to JSON: %v", err)