소스 검색

Add GetCollection example

pull/6/head
Matt Baer 6 년 전
부모
커밋
90e9560c81
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. +11
    -0
      collection_test.go

+ 11
- 0
collection_test.go 파일 보기

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

불러오는 중...
취소
저장