Skip to content

Instantly share code, notes, and snippets.

@luizbranco luizbranco/main.go
Created Nov 23, 2017

What would you like to do?
promptui demo step 4
type recipe struct {
Title string
Href string
Ingredients string
type apiResponse struct {
Results []recipe
var res apiResponse
err = json.NewDecoder(r.Body).Decode(&res)
if err != nil {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.