From fbe1c5830b90aac57060b6a0272e6b710bc9eb64 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Thu, 15 Feb 2018 15:47:21 -0500 Subject: [PATCH] Add expected output on examples --- collection_test.go | 3 ++- post_test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/collection_test.go b/collection_test.go index 44c67e2..66e396b 100644 --- a/collection_test.go +++ b/collection_test.go @@ -39,5 +39,6 @@ func ExampleClient_GetCollection() { fmt.Printf("%v", err) return } - fmt.Printf("%+v", coll) + fmt.Printf("%s", coll.Title) + // Output: write.as } diff --git a/post_test.go b/post_test.go index c76f251..b3ffd4a 100644 --- a/post_test.go +++ b/post_test.go @@ -87,5 +87,6 @@ func ExampleClient_CreatePost() { return } - fmt.Printf("%+v", p) + fmt.Printf("%s", p.Content) + // Output: This is a post. }