mirror of
https://github.com/1f349/lavender.git
synced 2025-01-21 22:26:25 +00:00
13 lines
181 B
Go
13 lines
181 B
Go
package utils
|
|
|
|
import "strings"
|
|
|
|
func EmailHide(email string) string {
|
|
return strings.Map(func(r rune) rune {
|
|
if r != '@' && r != '.' {
|
|
return 'x'
|
|
}
|
|
return r
|
|
}, email)
|
|
}
|