Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 456 Bytes

Readme.md

File metadata and controls

31 lines (23 loc) · 456 Bytes

Go-CK

This package provides a simple rest client for the chefkoch.de API.

Installation

go get -u github.com/wehmoen-dev/go-ck

Usage

package main

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

const MyFavouriteRecipeId = "2529831396465550"

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