// EmailDomain returns the domain of the identity's email.
EmailDomain returns the domain of the identity's email.
// EmailDomain returns the domain of the identity ' s email .
func (i *Identity) EmailDomain() string {
	if i.Email == "" {
		return ""
	}
	comp := strings.Split(i.Email, "@")
	if len(comp) != 2 || comp[0] == "" {
		return ""
	}
	return comp[1]
}
func ( i * Identity ) EmailDomain ( ) string { if i . Email == " " { return " " } comp := strings . Split ( i . Email , " " ) if len ( comp ) != 2 || comp [ 0 ] == " " { return " " } return comp [ 1 ] }
EmailDomain returns the domain of the identity's email.
EmailDomain returns the domain of the identity ' s email .