Files
distribution/internal/uuid/uuid.go
Sebastiaan van Stijn f5e1a8931a update golangci-lint to v2.9 and fix linting issues
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-02-11 10:10:07 +01:00

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()
}