Skip to content

Commit 164fd82

Browse files
authored
Merge pull request #10 from hellofresh/patch/one-uuid-lib-for-all
Use gofrs uuid lib instead of pborman
2 parents fc38f95 + 470e269 commit 164fd82

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ services:
44
- docker
55

66
go:
7-
- 1.6
8-
- 1.7
9-
- 1.8
10-
- master
7+
- "1.9"
8+
- "1.10"
9+
- "1.11"
10+
- "stable"
1111

1212
install:
1313
- go get -v -d

aggregate_root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package goengine
33
import (
44
"fmt"
55

6+
"github.com/gofrs/uuid"
67
"github.com/hellofresh/goengine/reflection"
7-
"github.com/pborman/uuid"
88
)
99

1010
type AggregateRoot interface {
@@ -24,7 +24,7 @@ type AggregateRootBased struct {
2424

2525
// NewAggregateRootBased constructor
2626
func NewAggregateRootBased(source interface{}) *AggregateRootBased {
27-
return NewEventSourceBasedWithID(source, uuid.New())
27+
return NewEventSourceBasedWithID(source, uuid.Must(uuid.NewV4()).String())
2828
}
2929

3030
// NewEventSourceBasedWithID constructor

0 commit comments

Comments
 (0)