fixed ordering of map output in example test

This commit is contained in:
Dave Grijalva 2015-08-18 09:45:50 -07:00
parent 17be525a73
commit a1fc9b87e6
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ func ExampleNew() {
claims["foo"] = "bar"
claims["exp"] = time.Unix(0, 0).Add(time.Hour * 1).Unix()
fmt.Printf("%v\n", token.Claims)
//Output: map[foo:bar exp:3600]
fmt.Printf("<%T> foo:%v exp:%v\n", token.Claims, claims["foo"], claims["exp"])
//Output: <jwt.MapClaim> foo:bar exp:3600
}
func ExampleNewWithClaims(mySigningKey []byte) (string, error) {