Skip to content

Commit 60c47f8

Browse files
committed
update uuid v4()
1 parent a1c12fd commit 60c47f8

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

blob/array_tracker.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ func (bt *Blobies) prepare() {
8686

8787
// Register - Register new blob
8888
func (bt *Blobies) Register(b *Blobie) error {
89-
newUUID, err := uuid.NewV4()
90-
if err != nil {
91-
return err
92-
}
89+
newUUID := uuid.NewV4()
9390
b.ID = newUUID
9491
bt.Objects[newUUID] = b
9592
return nil

go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/LdDl/gocv-blob
2+
3+
go 1.14
4+
5+
require (
6+
github.com/satori/go.uuid v1.2.0
7+
gocv.io/x/gocv v0.23.0
8+
)

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
2+
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
3+
gocv.io/x/gocv v0.23.0 h1:3Fgbt06/uR8Zf9emWndhjbUjdrw+nto69R/b4noFydY=
4+
gocv.io/x/gocv v0.23.0/go.mod h1:Rar2PS6DV+T4FL+PM535EImD/h13hGVaHhnCu1xarBs=

0 commit comments

Comments
 (0)