Procházet zdrojové kódy

Add GetCollection example

pull/6/head
Matt Baer před 6 roky
rodič
revize
90e9560c81
1 změnil soubory, kde provedl 11 přidání a 0 odebrání
  1. +11
    -0
      collection_test.go

+ 11
- 0
collection_test.go Zobrazit soubor

@@ -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)
}

Načítá se…
Zrušit
Uložit