Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
writeas
/
go-writeas
espelho de
https://github.com/writeas/go-writeas.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Lançamentos
9
Trabalho
Ver a proveniência
Add GetCollection example
pull/6/head
Matt Baer
há 6 anos
ascendente
07854c5fd7
cometimento
90e9560c81
1 ficheiros alterados
com
11 adições
e
0 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+11
-0
collection_test.go
+ 11
- 0
collection_test.go
Ver ficheiro
@@ -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é-visualizar
Carregando…
Cancelar
Guardar