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

How to Detect and Delete Emojis in Golang

by Vladislav GukasovSeptember 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.
featured image - How to Detect and Delete Emojis in Golang
Vladislav Gukasov HackerNoon profile picture
Vladislav Gukasov

Vladislav Gukasov

@vgukasov

L O A D I N G
. . . comments & more!

About Author

Vladislav Gukasov HackerNoon profile picture
Vladislav Gukasov@vgukasov

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