add convert function
BiRabittoh andronacomarco@gmail.com
Mon, 24 Jun 2024 18:41:22 +0200
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
emoji.go
→
emoji.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