refactor: code review

This commit is contained in:
meilin.huang
2023-12-29 16:48:15 +08:00
parent 664118a709
commit 76fd6675b5
35 changed files with 343 additions and 349 deletions

View File

@@ -2,6 +2,8 @@ package timex
import "time"
const DefaultDateTimeFormat = "2006-01-02 15:04:05"
func DefaultFormat(time time.Time) string {
return time.Format("2006-01-02 15:04:05")
return time.Format(DefaultDateTimeFormat)
}