Find what you can cook with your emojis
install the package:
go get github.com/EmojiMeals/meals-go
then start using it:
import "github.com/EmojiMeals/meals-go"
cookbook := meals.NewCookbook("path-to-recipes.json")
cookbook.Mealify("๐","๐
","๐ง")
You can start checking for recipes using cookbook.Mealify()
.
meals.Mealify("๐","๐ฐ") #=> "๐ฅฎ"
# it is not order dependent ๐ฏ๐ฏIQ ๐ง ๐ฅ
meals.Mealify("๐ฐ", "๐") #=> "๐ฅฎ"
# Use more than two items!
meals.Mealify("๐","๐
","๐ง") #=> "๐"
# After all this eating, I need a drink
meals.Mealify("๐ถ","๐พ","๐ท","๐ธ","๐ถ","๐น","๐บ","๐ป","๐ฅ","๐พ","๐ฅ") #=> "๐คฎ"
Yes!
This project is licensed under the MIT License.