package
0.0.0-20241126132414-a6474f9c9b52
Repository: https://github.com/talgat-ruby/exercises-go.git
Documentation: pkg.go.dev
# README
Problem 6
Create a function that changes specific words into emojis.
Given a sentence as a string, replace the words smile
, grin
, sad
and mad
with their corresponding emoticons.
word | emoji |
---|---|
smile | 🙂 |
grin | 😀 |
sad | 😥 |
mad | 😠|
emojify("Make me smile") // "Make me 🙂"
emojify("Make me grin") // "Make me 😀"
emojify("Make me sad") // "Make me 😥"