downloader/api/pkg/common/uuid/uuid.go

19 lines
222 B
Go
Raw Normal View History

2021-12-21 02:18:11 +01:00
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()
}