소스 검색

Add expected output on examples

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

+ 2
- 1
collection_test.go 파일 보기

@@ -39,5 +39,6 @@ func ExampleClient_GetCollection() {
fmt.Printf("%v", err)
return
}
fmt.Printf("%+v", coll)
fmt.Printf("%s", coll.Title)
// Output: write.as
}

+ 2
- 1
post_test.go 파일 보기

@@ -87,5 +87,6 @@ func ExampleClient_CreatePost() {
return
}

fmt.Printf("%+v", p)
fmt.Printf("%s", p.Content)
// Output: This is a post.
}

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