mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 05:12:36 +08:00
feat: 给日志输出结果加上时间标记
This commit is contained in:
parent
abd2ba0947
commit
5072844ac3
@ -26,6 +26,7 @@ func init() {
|
|||||||
func LogSuccess(result string) {
|
func LogSuccess(result string) {
|
||||||
LogWG.Add(1)
|
LogWG.Add(1)
|
||||||
LogSucTime = time.Now().Unix()
|
LogSucTime = time.Now().Unix()
|
||||||
|
result = fmt.Sprintf("[%v] %v", time.Unix(LogSucTime, 0).Format("2006-01-02 15:04:05"), result)
|
||||||
Results <- &result
|
Results <- &result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user