mirror of
https://github.com/40t/go-sniffer.git
synced 2025-08-08 13:23:56 +08:00
date format
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
hp "github.com/40t/go-sniffer/plugSrc/http/build"
|
hp "github.com/40t/go-sniffer/plugSrc/http/build"
|
||||||
mongodb "github.com/40t/go-sniffer/plugSrc/mongodb/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"
|
redis "github.com/40t/go-sniffer/plugSrc/redis/build"
|
||||||
mssql "github.com/feiin/go-sniffer/plugSrc/mssql/build"
|
mssql "github.com/feiin/go-sniffer/plugSrc/mssql/build"
|
||||||
|
mysql "github.com/feiin/go-sniffer/plugSrc/mysql/build"
|
||||||
"github.com/google/gopacket"
|
"github.com/google/gopacket"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ import "time"
|
|||||||
|
|
||||||
func GetNowStr(isClient bool) string {
|
func GetNowStr(isClient bool) string {
|
||||||
var msg 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 {
|
if isClient {
|
||||||
msg += "| cli -> ser |"
|
msg += "| cli -> ser |"
|
||||||
} else {
|
} else {
|
||||||
|
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
func GetNowStr(isClient bool) string {
|
func GetNowStr(isClient bool) string {
|
||||||
var msg 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 {
|
if isClient {
|
||||||
msg += "| cli -> ser |"
|
msg += "| cli -> ser |"
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user