Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	Readme.md
  • Loading branch information
Nico Wehmöller committed Aug 20, 2024
2 parents 07d1f30 + 147e2f5 commit 637341d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,19 @@ go get -u github.com/wehmoen-dev/go-ck
```go
package main


import (
"fmt"
"github.com/wehmoen-dev/go-ck"
"github.com/wehmoen-dev/go-ck/pkg/client"
)

const MyFavouriteRecipeId = "2529831396465550"

func main() {
ck := client.NewClient()
recipes, err := ck.GetRecipe(MyFavouriteRecipeId)
if err != nil {
fmt.Println(err)
}
for _, recipe := range recipes {
fmt.Println(recipe.Title)
}
ck := client.NewClient()
recipe, err := ck.GetRecipe(MyFavouriteRecipeId)
if err != nil {
fmt.Println(err)
}
fmt.Println(recipe.Title)
}
```

0 comments on commit 637341d

Please sign in to comment.