14 lines
171 B
Go
14 lines
171 B
Go
package domain
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type ID = uuid.UUID
|
|
|
|
func NewID() ID {
|
|
return uuid.New()
|
|
}
|
|
|
|
func ParseID(s string) (ID, error) {
|
|
return uuid.Parse(s)
|
|
}
|