Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #25 from matiasinsaurralde/uuid-fix
Browse files Browse the repository at this point in the history
Fix go.uuid usage
  • Loading branch information
buger committed Feb 8, 2018
2 parents eb657b3 + ad908d5 commit 4396624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/api/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ func (api *APIDef) setAPIDefinition() {

func New(name string) *APIDef {
api := APIDef{}
api.id = strings.Replace(uuid.NewV4().String(), "-", "", -1)
id, _ := uuid.NewV4()
api.id = strings.Replace(id.String(), "-", "", -1)
api.name = name
return &api
}
Expand Down

0 comments on commit 4396624

Please sign in to comment.