mirror of
https://github.com/distribution/distribution.git
synced 2026-07-17 02:00:41 +00:00
12 lines
307 B
Go
12 lines
307 B
Go
package uuid
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// NewString returns a new V7 UUID string. V7 UUIDs are time-ordered for better database performance.
|
|
// Panics on error to maintain compatibility with google/uuid's NewString() method.
|
|
func NewString() string {
|
|
return uuid.Must(uuid.NewV7()).String()
|
|
}
|