memos/utils/common.go

16 lines
210 B
Go
Raw Normal View History

2021-12-12 09:39:28 +03:00
package utils
2021-12-08 18:43:14 +03:00
import (
"time"
"github.com/google/uuid"
)
func GenUUID() string {
return uuid.New().String()
}
func GetNowDateTimeStr() string {
2021-12-14 01:27:41 +03:00
return time.Now().Local().Format("2006/01/02 15:04:05")
2021-12-08 18:43:14 +03:00
}