Browse Source

Add expected output on examples

pull/6/head
Matt Baer 6 years ago
parent
commit
fbe1c5830b
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      collection_test.go
  2. +2
    -1
      post_test.go

+ 2
- 1
collection_test.go View File

@@ -39,5 +39,6 @@ func ExampleClient_GetCollection() {
fmt.Printf("%v", err)
return
}
fmt.Printf("%+v", coll)
fmt.Printf("%s", coll.Title)
// Output: write.as
}

+ 2
- 1
post_test.go View File

@@ -87,5 +87,6 @@ func ExampleClient_CreatePost() {
return
}

fmt.Printf("%+v", p)
fmt.Printf("%s", p.Content)
// Output: This is a post.
}

Loading…
Cancel
Save