Skip to content

Instantly share code, notes, and snippets.

@Depado
Created March 27, 2018 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Depado/226449bbbdef6c9ef6d222250f712ba6 to your computer and use it in GitHub Desktop.
Save Depado/226449bbbdef6c9ef6d222250f712ba6 to your computer and use it in GitHub Desktop.
func cardFromDrink(d *cocktail.FullDrink) df.BasicCard {
card := df.BasicCard{
Title: d.StrDrink,
FormattedText: d.StrInstructions,
Image: &df.Image{
ImageURI: d.StrDrinkThumb,
},
}
return card
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment