19 lines
222 B
Go
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()
|
|
}
|