package uuid import "github.com/google/uuid" type Gen interface { Create() string } type uuidGen struct { } func New() *uuidGen { return &uuidGen{} } func (u uuidGen) Create() string { return uuid.New().String() }