Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Ferraguti committed Oct 5, 2023
1 parent 9509fd5 commit 039e483
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/gilperopiola/go-rest-example/pkg/repository"
"github.com/gilperopiola/go-rest-example/pkg/service"
"github.com/gilperopiola/go-rest-example/pkg/transport"

"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/repository/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

"github.com/gilperopiola/go-rest-example/pkg/config"
"github.com/gilperopiola/go-rest-example/pkg/models"
"github.com/sirupsen/logrus"

_ "github.com/go-sql-driver/mysql"
"github.com/jinzhu/gorm"
"github.com/sirupsen/logrus"
)

type Database struct {
Expand Down
2 changes: 0 additions & 2 deletions pkg/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"

"github.com/gilperopiola/go-rest-example/pkg/models"
"github.com/jinzhu/gorm"
)

type Repository struct {
Expand Down Expand Up @@ -36,6 +35,5 @@ var (
ErrCreatingUser = errors.New("error creating user")
ErrUpdatingUser = errors.New("error updating user")
ErrGettingUser = errors.New("error getting user")
ErrUserNotFound = gorm.ErrRecordNotFound
ErrUserAlreadyDeleted = errors.New("error, user already deleted")
)
2 changes: 1 addition & 1 deletion pkg/transport/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package transport
import (
"github.com/gilperopiola/go-rest-example/pkg/auth"
"github.com/gilperopiola/go-rest-example/pkg/config"
"github.com/sirupsen/logrus"

"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
)

type Router struct {
Expand Down

0 comments on commit 039e483

Please sign in to comment.