How to Detect and Delete Emojis in Golang by@vgukasov

How to Detect and Delete Emojis in Golang

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.
Vladislav Gukasov Hacker Noon profile picture

Vladislav Gukasov

Founder of SWE at space307


Join Hacker Noon

Create your free account to unlock your custom reading experience.