First local go service

This commit is contained in:
2021-12-21 02:18:11 +01:00
parent 1506a57231
commit 0d3fae2ca5
17 changed files with 329 additions and 58 deletions

View File

@@ -0,0 +1,18 @@
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()
}