update README

This commit is contained in:
wasd
2018-09-30 00:49:40 +08:00
parent e63280ed64
commit c295ac96a7
2 changed files with 21 additions and 11 deletions

View File

@@ -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
}