11 lines
282 B
Go
11 lines
282 B
Go
package store
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
// NewID generates a new UUID string.
|
|
// Used by SQLite stores where gen_random_uuid() is not available.
|
|
// Also usable by Postgres stores — application-side IDs are always valid.
|
|
func NewID() string {
|
|
return uuid.New().String()
|
|
}
|