Skip to content

Commit

Permalink
Switch to github.com/google/uuid dependency.
Browse files Browse the repository at this point in the history
It seems to be more well maintained and reliable at this time.

google/uuid works out of box with Go modules, because the most recently
tagged version is compatible with master (at this time, they're equal).
On the other hand, using satori/go.uuid requires reverting back to an
older API because its latest tag is more significantly behind master.
See satori/go.uuid#90, satori/go.uuid#82, satori/go.uuid#76.
  • Loading branch information
dmitshur committed Dec 22, 2018
1 parent 2ed0895 commit e3254af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usercontent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
pathpkg "path"

"github.com/satori/go.uuid"
"github.com/google/uuid"
"github.com/shurcooL/httperror"
"github.com/shurcooL/users"
"github.com/shurcooL/webdavfs/vfsutil"
Expand Down Expand Up @@ -47,7 +47,7 @@ func (uc userContentHandler) Upload(w http.ResponseWriter, req *http.Request) er
return httperror.JSONResponse{V: uploadResponse{Error: err.Error()}}
}

uuid, err := uuid.NewV4()
uuid, err := uuid.NewRandom()
if err != nil {
return httperror.JSONResponse{V: uploadResponse{Error: err.Error()}}
}
Expand Down

0 comments on commit e3254af

Please sign in to comment.