func (e *Entity) primaryIdentity() *Identity {
	var firstIdentity *Identity
	for _, ident := range e.Identities {
		if firstIdentity == nil {
			firstIdentity = ident
		}
		if ident.SelfSignature.IsPrimaryId != nil && *ident.SelfSignature.IsPrimaryId {
			return ident
		}
	}
	return firstIdentity
}
// primaryIdentity returns the Identity marked as primary or the first identity
// if none are so marked.
primaryIdentity returns the Identity marked as primary or the first identity
if none are so marked.
// primaryIdentity returns the Identity marked as primary or the first identity // if none are so marked .
func (e *Entity) primaryIdentity() *Identity {
	var firstIdentity *Identity
	for _, ident := range e.Identities {
		if firstIdentity == nil {
			firstIdentity = ident
		}
		if ident.SelfSignature.IsPrimaryId != nil && *ident.SelfSignature.IsPrimaryId {
			return ident
		}
	}
	return firstIdentity
}
func ( e * Entity ) primaryIdentity ( ) * Identity { var firstIdentity * Identity for _ , ident := range e . Identities { if firstIdentity == nil { firstIdentity = ident } if ident . SelfSignature . IsPrimaryId != nil && * ident . SelfSignature . IsPrimaryId { return ident } } return firstIdentity }
primaryIdentity returns the Identity marked as primary or the first identity
if none are so marked.
primaryIdentity returns the Identity marked as primary or the first identity if none are so marked .