lavender/utils/email-hide.go

13 lines
181 B
Go
Raw Normal View History

2024-11-28 00:11:38 +00:00
package utils
import "strings"
func EmailHide(email string) string {
return strings.Map(func(r rune) rune {
if r != '@' && r != '.' {
return 'x'
}
return r
}, email)
}