Skip to content

Instantly share code, notes, and snippets.

@depado
Created March 27, 2018 13:29
Show Gist options
  • Save depado/42e7f34e6feee41ca22a948faafc4abe to your computer and use it in GitHub Desktop.
Save depado/42e7f34e6feee41ca22a948faafc4abe 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(df.SingleSimpleResponse(out, out)),
},
}
c.JSON(http.StatusOK, dff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment