Skip to content

Find what you can cook with your emojis ๐Ÿ‘จโ€๐Ÿณ

License

Notifications You must be signed in to change notification settings

EmojiMeals/meals-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.