Skip to content

Commit

Permalink
fix: fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vanesyan committed Aug 31, 2024
1 parent d2b7a49 commit 9dc15ca
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions internal/uuidv7/uuidv7.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// uuidv7 is a wrapper around google's uuid package.
package uuidv7

import (
"github.com/google/uuid"
"go.inout.gg/foundations/must"
)

// Must returns a new random UUID. It panics if there is an error.
func Must() uuid.UUID {
return must.Must(uuid.NewV7())

Check failure on line 11 in internal/uuidv7/uuidv7.go

View workflow job for this annotation

GitHub Actions / lint

not enough arguments in call to must.Must
}

// FromString parses a UUID from a string.
func FromString(s string) (uuid.UUID, error) {
return uuid.Parse(s)
}
2 changes: 1 addition & 1 deletion password/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"go.inout.gg/shield/password/verification"
"go.inout.gg/shield/user"
"go.inout.gg/foundations/debug"
"go.inout.gg/foundations/internal/uuidv7"
"go.inout.gg/shield/internal/uuidv7"
"go.inout.gg/foundations/sql/db/dbutil"
)

Expand Down
2 changes: 1 addition & 1 deletion passwordreset/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"go.inout.gg/shield/sender"
"go.inout.gg/shield/user"
"go.inout.gg/foundations/debug"
"go.inout.gg/foundations/internal/uuidv7"
"go.inout.gg/shield/internal/uuidv7"
"go.inout.gg/foundations/must"
"go.inout.gg/foundations/random"
)
Expand Down
2 changes: 1 addition & 1 deletion strategy/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"go.inout.gg/shield/internal/dbsqlc"
"go.inout.gg/shield/strategy"
"go.inout.gg/foundations/http/cookie"
"go.inout.gg/foundations/internal/uuidv7"
"go.inout.gg/shield/internal/uuidv7"
"go.inout.gg/foundations/sql/db/dbutil"
)

Expand Down

0 comments on commit 9dc15ca

Please sign in to comment.