feat: move entity and usecase to root folder

This commit is contained in:
Elton Minetto
2020-10-12 07:35:29 -03:00
parent 2c0f46aff1
commit 3e4eb2e616
33 changed files with 109 additions and 138 deletions
+14
View File
@@ -0,0 +1,14 @@
package entity
import "github.com/google/uuid"
type ID = uuid.UUID
func NewID() ID {
return ID(uuid.New())
}
func StringToID(s string) (ID, error) {
id, err := uuid.Parse(s)
return ID(id), err
}