Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
writeas
/
go-writeas
espelhamento de
https://github.com/writeas/go-writeas.git
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
9
Atividade
Ver código fonte
Add GetCollection example
pull/6/head
Matt Baer
6 anos atrás
pai
07854c5fd7
commit
90e9560c81
1 arquivos alterados
com
11 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+11
-0
collection_test.go
+ 11
- 0
collection_test.go
Ver arquivo
@@ -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)
}
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar