forked from mirror/gin
fix typo and add comments (#2760)
This commit is contained in:
parent
dd8a27c0b6
commit
be860ec157
|
@ -165,6 +165,7 @@ func function(pc uintptr) []byte {
|
||||||
return name
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// timeFormat returns a customized time string for logger.
|
||||||
func timeFormat(t time.Time) string {
|
func timeFormat(t time.Time) string {
|
||||||
timeString := t.Format("2006/01/02 - 15:04:05")
|
timeString := t.Format("2006/01/02 - 15:04:05")
|
||||||
return timeString
|
return timeString
|
||||||
|
|
Loading…
Reference in New Issue