mirror of
https://github.com/Ed1s0nZ/PrivHunterAI.git
synced 2025-09-17 20:41:37 +00:00
Update scan.go
This commit is contained in:
parent
d779c99462
commit
dc8146ec3f
2
scan.go
2
scan.go
@ -26,6 +26,7 @@ type Result struct {
|
||||
Result string `json:"result"`
|
||||
Reason string `json:"reason"`
|
||||
Confidence string `json:"confidence"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
}
|
||||
|
||||
// 扫描结果
|
||||
@ -94,6 +95,7 @@ func scan() {
|
||||
resultOutput.Result = scanR.Res
|
||||
resultOutput.Reason = scanR.Reason
|
||||
resultOutput.Confidence = scanR.Confidence
|
||||
resultOutput.Timestamp = time.Now().Format("2006-01-02 15:04:05")
|
||||
jsonData, err := json.Marshal(resultOutput)
|
||||
if err != nil {
|
||||
log.Fatalf("Error marshaling to JSON: %v", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user