mirror of
https://github.com/40t/go-sniffer.git
synced 2025-08-07 08:57:28 +08:00
update README
This commit is contained in:
@@ -11,10 +11,12 @@ import (
|
||||
|
||||
func GetNowStr(isClient bool) string {
|
||||
var msg string
|
||||
layout := "01/02 15:04:05.000000"
|
||||
msg += time.Now().Format(layout)
|
||||
if isClient {
|
||||
msg = time.Now().Format("2006-01-02 15:04:05")+"| cli -> ser |"
|
||||
msg += "| cli -> ser |"
|
||||
}else{
|
||||
msg = time.Now().Format("2006-01-02 15:04:05")+"| ser -> cli |"
|
||||
msg += "| ser -> cli |"
|
||||
}
|
||||
return msg
|
||||
}
|
||||
|
Reference in New Issue
Block a user