all repos — emoji @ 7a25cdeb568bc3347ea800ba141d97ebb7d87637

A minimalistic emoji package for Go (golang)

add convert function
BiRabittoh andronacomarco@gmail.com
Mon, 24 Jun 2024 18:41:22 +0200
commit

7a25cdeb568bc3347ea800ba141d97ebb7d87637

parent

6ca9a8e9d7e7ee71fa9e8f61328dfae9deb85e1a

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M emoji.goemoji.go

@@ -29,6 +29,11 @@ func (e Emoji) String() string {

return string(e) } +// Convert returns an EmojiWithTone object out of a simple emoji. +func (e Emoji) Convert() EmojiWithTone { + return newEmojiWithTone(e.String()) +} + // EmojiWithTone defines an emoji object that has skin tone options. type EmojiWithTone struct { oneTonedCode string