From ec619798e8016c23bf3ff26126658df31dbc0760 Mon Sep 17 00:00:00 2001 From: Kory Taborn Date: Sun, 5 May 2019 15:37:26 -0500 Subject: [PATCH] Update package paths --- articles/models.go | 9 +++++---- articles/routers.go | 7 ++++--- articles/serializers.go | 3 ++- articles/validators.go | 5 +++-- hello.go | 6 +++--- users/middlewares.go | 7 ++++--- users/models.go | 3 ++- users/routers.go | 5 +++-- users/serializers.go | 4 ++-- users/validators.go | 3 ++- vendor/vendor.json | 2 +- 11 files changed, 31 insertions(+), 23 deletions(-) diff --git a/articles/models.go b/articles/models.go index f5a0ec1..bf74812 100644 --- a/articles/models.go +++ b/articles/models.go @@ -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 { diff --git a/articles/routers.go b/articles/routers.go index 820ed4c..a108167 100644 --- a/articles/routers.go +++ b/articles/routers.go @@ -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) { diff --git a/articles/serializers.go b/articles/serializers.go index 0a0d4c4..e7ed26d 100644 --- a/articles/serializers.go +++ b/articles/serializers.go @@ -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" ) diff --git a/articles/validators.go b/articles/validators.go index 33082c5..1dcac7c 100644 --- a/articles/validators.go +++ b/articles/validators.go @@ -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" ) diff --git a/hello.go b/hello.go index b8eb678..5af229c 100644 --- a/hello.go +++ b/hello.go @@ -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) { diff --git a/users/middlewares.go b/users/middlewares.go index ffeda29..674ca8e 100644 --- a/users/middlewares.go +++ b/users/middlewares.go @@ -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 diff --git a/users/models.go b/users/models.go index f2406fb..e3c519e 100644 --- a/users/models.go +++ b/users/models.go @@ -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" ) diff --git a/users/routers.go b/users/routers.go index aa661c7..d5f1e0d 100644 --- a/users/routers.go +++ b/users/routers.go @@ -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) { diff --git a/users/serializers.go b/users/serializers.go index c7e23cd..309a9cf 100644 --- a/users/serializers.go +++ b/users/serializers.go @@ -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 { diff --git a/users/validators.go b/users/validators.go index 8933c99..4ec1eef 100644 --- a/users/validators.go +++ b/users/validators.go @@ -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" ) diff --git a/vendor/vendor.json b/vendor/vendor.json index ab95daa..59d710b 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -207,5 +207,5 @@ "revisionTime": "2017-07-12T05:45:46Z" } ], - "rootPath": "github.com/wangzitian0/golang-gin-starter-kit" + "rootPath": "golang-gin-realworld-example-app" }