Skip to content

Latest commit

ย 

History

History
49 lines (30 loc) ยท 1.13 KB

README.md

File metadata and controls

49 lines (30 loc) ยท 1.13 KB

meals-go emoji? yes Tests

Find what you can cook with your emojis

get started

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("๐Ÿž","๐Ÿ…","๐Ÿง€")

Usage

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("๐Ÿถ","๐Ÿพ","๐Ÿท","๐Ÿธ","๐Ÿถ","๐Ÿน","๐Ÿบ","๐Ÿป","๐Ÿฅ‚","๐Ÿพ","๐Ÿฅƒ") #=> "๐Ÿคฎ"

Is it thread safe

Yes!

Can I donate to the project?

Yes, here

License

This project is licensed under the MIT License.