memos/common/utils.go

16 lines
203 B
Go
Raw Normal View History

2021-12-08 23:43:14 +08:00
package common
import (
"time"
"github.com/google/uuid"
)
func GenUUID() string {
return uuid.New().String()
}
func GetNowDateTimeStr() string {
2021-12-09 22:02:57 +08:00
return time.Now().Format("2006/01/02 15:04:05")
2021-12-08 23:43:14 +08:00
}