- Mask email addresses
Log personal data like email addresses for debugging purposes.
You should not rely on this package for security. Sensitive data should not be stored or stored in a secure way in the first place.
go get github.com/networkteam/obfuscate
package main
import (
"fmt"
"github.com/networkteam/obfuscate"
)
func main() {
fmt.Println(obfuscate.EmailAddressPartially("john.doe@example.com"))
// Output:
// j*n.d*e@e*e.com
}