mirror of
https://github.com/40t/go-sniffer.git
synced 2025-08-08 10:14:58 +08:00
date format
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
||||
|
||||
hp "github.com/40t/go-sniffer/plugSrc/http/build"
|
||||
mongodb "github.com/40t/go-sniffer/plugSrc/mongodb/build"
|
||||
mysql "github.com/40t/go-sniffer/plugSrc/mysql/build"
|
||||
redis "github.com/40t/go-sniffer/plugSrc/redis/build"
|
||||
mssql "github.com/feiin/go-sniffer/plugSrc/mssql/build"
|
||||
mysql "github.com/feiin/go-sniffer/plugSrc/mysql/build"
|
||||
"github.com/google/gopacket"
|
||||
)
|
||||
|
||||
|
@@ -4,7 +4,7 @@ import "time"
|
||||
|
||||
func GetNowStr(isClient bool) string {
|
||||
var msg string
|
||||
msg += time.Now().Format("2006-01-02 15:04:05")
|
||||
msg += time.Now().Format("2006-01-02 15:04:05.000")
|
||||
if isClient {
|
||||
msg += "| cli -> ser |"
|
||||
} else {
|
||||
|
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func GetNowStr(isClient bool) string {
|
||||
var msg string
|
||||
msg += time.Now().Format("2006-01-02 15:04:05")
|
||||
msg += time.Now().Format("2006-01-02 15:04:05.000")
|
||||
if isClient {
|
||||
msg += "| cli -> ser |"
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user