forked from mirror/jwt
Changed test to explicitly show that you can change the map without type
asserting every call.
This commit is contained in:
parent
6f536a0d2d
commit
ddfa84b397
|
@ -28,7 +28,7 @@ func ExampleNew() {
|
||||||
claims["foo"] = "bar"
|
claims["foo"] = "bar"
|
||||||
claims["exp"] = time.Unix(0, 0).Add(time.Hour * 1).Unix()
|
claims["exp"] = time.Unix(0, 0).Add(time.Hour * 1).Unix()
|
||||||
|
|
||||||
fmt.Printf("%v\n", claims)
|
fmt.Printf("%v\n", token.Claims)
|
||||||
//Output: map[foo:bar exp:3600]
|
//Output: map[foo:bar exp:3600]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue