Procházet zdrojové kódy

Add expected output on examples

pull/6/head
Matt Baer před 6 roky
rodič
revize
fbe1c5830b
2 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. +2
    -1
      collection_test.go
  2. +2
    -1
      post_test.go

+ 2
- 1
collection_test.go Zobrazit soubor

@@ -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 Zobrazit soubor

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

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

Načítá se…
Zrušit
Uložit