Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F15045942
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
743 B
Subscribers
None
View Options
diff --git a/collection_test.go b/collection_test.go
index 8a5617e..c413235 100644
--- a/collection_test.go
+++ b/collection_test.go
@@ -1,30 +1,30 @@
package writeas
import (
"fmt"
"testing"
)
func TestGetCollection(t *testing.T) {
wac := NewClient()
res, err := wac.GetCollection("blog")
if err != nil {
t.Errorf("Unexpected fetch results: %+v, err: %v\n", res, err)
} else {
t.Logf("Post: %+v", res)
if res.Title != "write.as" {
t.Errorf("Unexpected fetch results: %+v\n", res)
}
}
}
-func ExampleGetCollection() {
+func ExampleClient_GetCollection() {
c := NewClient()
coll, err := c.GetCollection("blog")
if err != nil {
fmt.Printf("%v", err)
return
}
fmt.Printf("%+v", coll)
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 30, 6:58 PM (12 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3830843
Attached To
rWGO writeas-go
Event Timeline
Log In to Comment