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 GetCollection example
pull/6/head
Matt Baer
6 years ago
parent
07854c5fd7
commit
90e9560c81
1 changed files
with
11 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
collection_test.go
+ 11
- 0
collection_test.go
View File
@@ -1,6 +1,7 @@
package writeas
import (
"fmt"
"testing"
)
@@ -17,3 +18,13 @@ func TestGetCollection(t *testing.T) {
}
}
}
func ExampleGetCollection() {
c := NewClient()
coll, err := c.GetCollection("blog")
if err != nil {
fmt.Printf("%v", err)
return
}
fmt.Printf("%+v", coll)
}
Write
Preview
Loading…
Cancel
Save