This website works better with JavaScript.
Home
Explore
Help
Sign In
writeas
/
go-writeas
mirror of
https://github.com/writeas/go-writeas.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
9
Activity
Browse Source
Add expected output on examples
pull/6/head
Matt Baer
6 years ago
parent
b2c6f21081
commit
fbe1c5830b
2 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
collection_test.go
+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.
}
Write
Preview
Loading…
Cancel
Save