We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 07d1f30 + 147e2f5 commit 637341dCopy full SHA for 637341d
Readme.md
@@ -13,22 +13,19 @@ go get -u github.com/wehmoen-dev/go-ck
13
```go
14
package main
15
16
-
17
import (
18
"fmt"
19
- "github.com/wehmoen-dev/go-ck"
+ "github.com/wehmoen-dev/go-ck/pkg/client"
20
)
21
22
const MyFavouriteRecipeId = "2529831396465550"
23
24
func main() {
25
- ck := client.NewClient()
26
- recipes, err := ck.GetRecipe(MyFavouriteRecipeId)
27
- if err != nil {
28
- fmt.Println(err)
29
- }
30
- for _, recipe := range recipes {
31
- fmt.Println(recipe.Title)
32
+ ck := client.NewClient()
+ recipe, err := ck.GetRecipe(MyFavouriteRecipeId)
+ if err != nil {
+ fmt.Println(err)
+ }
+ fmt.Println(recipe.Title)
33
}
34
```
0 commit comments