What is the best pattern to censor specific abuse words in string with golang?
For example censor this text:
Mark is a porn-star.
to
Mark is a p*******r.
from a list of words that we pass to it.
What is the best pattern to censor specific abuse words in string with golang?
For example censor this text:
Mark is a porn-star.
to
Mark is a p*******r.
from a list of words that we pass to it.
This problem can be solved with "strings" library functions.
Look at this example: Golang simple world filter o censor