package handlers import ( "math/rand" "time" "github.com/oklog/ulid" ) func NewULID() string { now := time.Now() entropy := ulid.Monotonic(rand.New(rand.NewSource(now.UnixNano())), 0) return ulid.MustNew(ulid.Timestamp(now), entropy).String() } type GeneralError struct { Message string `json:"msg"` }