-
Notifications
You must be signed in to change notification settings - Fork 498
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 name and upgrade gin #10
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,10 @@ import ( | |
"math/rand" | ||
"time" | ||
|
||
"github.com/dgrijalva/jwt-go" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure? Might cause error can'f find There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I make sure it later on. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In fact, travis CI should do the work... but the gothinkster's repo didn't get right config... Let's wait Eric reply.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK |
||
"gopkg.in/go-playground/validator.v8" | ||
|
||
"github.com/gin-gonic/gin" | ||
"github.com/gin-gonic/gin/binding" | ||
"gopkg.in/gin-gonic/gin.v1" | ||
) | ||
|
||
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package users | ||
|
||
import ( | ||
"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" | ||
|
||
jwt "github.com/dgrijalva/jwt-go" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. Codes LGTM, but please make sure it works fine in new environment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, make sure later on. |
||
"github.com/dgrijalva/jwt-go/request" | ||
"github.com/gin-gonic/gin" | ||
"github.com/gothinkster/golang-gin-realworld-example-app/common" | ||
) | ||
|
||
// Strips 'TOKEN ' prefix from token string | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need use the dev version? Version related issue I think
govendor
is better and enough, https://github.com/gothinkster/golang-gin-realworld-example-app/blob/master/vendor/vendor.jsonThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now gin no longer gopkg style, use
govendor fetch github.com/gin-gonic/[email protected]
can get v1.3.x branch not develop version.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got, I have half year not write go...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh, thanks a lot!