downloader/api/pkg/common/uuid/uuid.go
2021-12-21 02:18:11 +01:00

19 lines
222 B
Go

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