另客网go项目公用的代码库

12345678910
  1. package utils
  2. import "time"
  3. const format = "2006-01-02 15:04:05"
  4. func GetNow() string {
  5. return time.Now().Format(format)
  6. }