mirror of
https://github.com/usememos/memos.git
synced 2025-02-16 03:12:13 +01:00
16 lines
191 B
Go
16 lines
191 B
Go
package common
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
func GenUUID() string {
|
|
return uuid.New().String()
|
|
}
|
|
|
|
func GetNowDateTimeStr() string {
|
|
return time.Now().Format("RFC3339")
|
|
}
|