Skip to content

Instantly share code, notes, and snippets.

@depado
Created March 27, 2018 14:06
Show Gist options
  • Save depado/ff35bf37f4cd7dc70b4c72c03dbd9da3 to your computer and use it in GitHub Desktop.
Save depado/ff35bf37f4cd7dc70b4c72c03dbd9da3 to your computer and use it in GitHub Desktop.
out := fmt.Sprintf("I found that cocktail : %s", d.StrDrink)
dff := &df.Fulfillment{
FulfillmentMessages: df.Messages{
{RichMessage: df.Text{Text: []string{out}}},
df.ForGoogle(cardFromDrink(d)),
},
}
c.JSON(http.StatusOK, dff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment