paint-brush
How to Detect and Delete Emojis in Golangby@vgukasov
5,892 reads
5,892 reads

How to Detect and Delete Emojis in Golang

by Vladislav Gukasov4mSeptember 8th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Some time ago I’ve encountered an issue when 10 million messages with emoji were written in the MySQL table with utf8 encoding. The fast solution was to prevent the insertion of messages in a database. The service back-end is written in Golang. The best way is to have a storage with all emojis and use it when you need to detect an emoji in a text. That’s how the [GoMoji library works. It uses local emoji list as provider. It checks whether given string contains emoji or not.

Coin Mentioned

Mention Thumbnail
featured image - How to Detect and Delete Emojis in Golang
Vladislav Gukasov HackerNoon profile picture
Vladislav Gukasov

Vladislav Gukasov

@vgukasov

Software Engineer @ Amazon

About @vgukasov
LEARN MORE ABOUT @VGUKASOV'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Vladislav Gukasov HackerNoon profile picture
Vladislav Gukasov@vgukasov
Software Engineer @ Amazon

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite