Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package paths #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions articles/models.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package articles

import (
_ "fmt"
"github.com/jinzhu/gorm"
"github.com/wangzitian0/golang-gin-starter-kit/common"
"github.com/wangzitian0/golang-gin-starter-kit/users"
"golang-gin-realworld-example-app/common"
"strconv"

"golang-gin-realworld-example-app/users"

"github.com/jinzhu/gorm"
)

type ArticleModel struct {
Expand Down
7 changes: 4 additions & 3 deletions articles/routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package articles

import (
"errors"
"github.com/wangzitian0/golang-gin-starter-kit/common"
"github.com/wangzitian0/golang-gin-starter-kit/users"
"gopkg.in/gin-gonic/gin.v1"
"golang-gin-realworld-example-app/common"
"golang-gin-realworld-example-app/users"
"net/http"
"strconv"

"gopkg.in/gin-gonic/gin.v1"
)

func ArticlesRegister(router *gin.RouterGroup) {
Expand Down
3 changes: 2 additions & 1 deletion articles/serializers.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package articles

import (
"golang-gin-realworld-example-app/users"

"github.com/gosimple/slug"
"github.com/wangzitian0/golang-gin-starter-kit/users"
"gopkg.in/gin-gonic/gin.v1"
)

Expand Down
5 changes: 3 additions & 2 deletions articles/validators.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package articles

import (
"golang-gin-realworld-example-app/common"
"golang-gin-realworld-example-app/users"

"github.com/gosimple/slug"
"github.com/wangzitian0/golang-gin-starter-kit/common"
"github.com/wangzitian0/golang-gin-starter-kit/users"
"gopkg.in/gin-gonic/gin.v1"
)

Expand Down
6 changes: 3 additions & 3 deletions hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package main

import (
"fmt"
"golang-gin-realworld-example-app/articles"
"golang-gin-realworld-example-app/common"
"golang-gin-realworld-example-app/users"

"gopkg.in/gin-gonic/gin.v1"

"github.com/jinzhu/gorm"
"github.com/wangzitian0/golang-gin-starter-kit/articles"
"github.com/wangzitian0/golang-gin-starter-kit/common"
"github.com/wangzitian0/golang-gin-starter-kit/users"
)

func Migrate(db *gorm.DB) {
Expand Down
7 changes: 4 additions & 3 deletions users/middlewares.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package users

import (
"golang-gin-realworld-example-app/common"
"net/http"
"strings"

"github.com/dgrijalva/jwt-go"
"github.com/dgrijalva/jwt-go/request"
"github.com/wangzitian0/golang-gin-starter-kit/common"
"gopkg.in/gin-gonic/gin.v1"
"net/http"
"strings"
)

// Strips 'TOKEN ' prefix from token string
Expand Down
3 changes: 2 additions & 1 deletion users/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package users

import (
"errors"
"golang-gin-realworld-example-app/common"

"github.com/jinzhu/gorm"
"github.com/wangzitian0/golang-gin-starter-kit/common"
"golang.org/x/crypto/bcrypt"
)

Expand Down
5 changes: 3 additions & 2 deletions users/routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package users

import (
"errors"
"github.com/wangzitian0/golang-gin-starter-kit/common"
"gopkg.in/gin-gonic/gin.v1"
"golang-gin-realworld-example-app/common"
"net/http"

"gopkg.in/gin-gonic/gin.v1"
)

func UsersRegister(router *gin.RouterGroup) {
Expand Down
4 changes: 2 additions & 2 deletions users/serializers.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package users

import (
"gopkg.in/gin-gonic/gin.v1"
"golang-gin-realworld-example-app/common"

"github.com/wangzitian0/golang-gin-starter-kit/common"
"gopkg.in/gin-gonic/gin.v1"
)

type ProfileSerializer struct {
Expand Down
3 changes: 2 additions & 1 deletion users/validators.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package users

import (
"github.com/wangzitian0/golang-gin-starter-kit/common"
"golang-gin-realworld-example-app/common"

"gopkg.in/gin-gonic/gin.v1"
)

Expand Down
2 changes: 1 addition & 1 deletion vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,5 @@
"revisionTime": "2017-07-12T05:45:46Z"
}
],
"rootPath": "github.com/wangzitian0/golang-gin-starter-kit"
"rootPath": "golang-gin-realworld-example-app"
}