Переглянути джерело

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.
}

Завантаження…
Відмінити
Зберегти