From a1fc9b87e687ea5a29fe8bae2538ca4b9b393805 Mon Sep 17 00:00:00 2001 From: Dave Grijalva Date: Tue, 18 Aug 2015 09:45:50 -0700 Subject: [PATCH] fixed ordering of map output in example test --- example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example_test.go b/example_test.go index 224cd91..75f5309 100644 --- a/example_test.go +++ b/example_test.go @@ -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: foo:bar exp:3600 } func ExampleNewWithClaims(mySigningKey []byte) (string, error) {