mirror of
https://github.com/rjNemo/auth
synced 2026-06-10 18:36:40 +00:00
8 lines
217 B
Go
8 lines
217 B
Go
package identity
|
|
|
|
import "strings"
|
|
|
|
// NormalizeEmail trims whitespace and lowercases an email for canonical comparisons.
|
|
func NormalizeEmail(email string) string {
|
|
return strings.TrimSpace(strings.ToLower(email))
|
|
}
|