You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
256 B
Go

package dbi
import (
"strings"
"time"
"github.com/google/uuid"
)
const TMFormat = "2006-01-02 15:04:05"
func GetNow() string {
return time.Now().Format(TMFormat)
}
func GenUUID() string {
return strings.ReplaceAll(uuid.New().String(), "-", "")
}