Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
writeas
/
go-writeas
peilaus alkaen
https://github.com/writeas/go-writeas.git
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Julkaisut
9
Toiminta
Selaa lähdekoodia
Add GetCollection example
pull/6/head
Matt Baer
6 vuotta sitten
vanhempi
07854c5fd7
commit
90e9560c81
1 muutettua tiedostoa
jossa
11 lisäystä
ja
0 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
collection_test.go
+ 11
- 0
collection_test.go
Näytä tiedosto
@@ -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)
}
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna