util/oid.go
func TypeInName(name *pkix.Name, oid asn1.ObjectIdentifier) bool {
	for _, v := range name.Names {
		if oid.Equal(v.Type) {
			return true
		}
	}
	return false
}
func TypeInName(name *pkix.Name, oid asn1.ObjectIdentifier) bool {
	for _, v := range name.Names {
		if oid.Equal(v.Type) {
			return true
		}
	}
	return false
}
func TypeInName ( name * pkix . Name , oid asn1 . ObjectIdentifier ) bool { for _ , v := range name . Names { if oid . Equal ( v . Type ) { return true } } return false }
// Helper function that checks for a name type in a pkix.Name
Helper function that checks for a name type in a pkix . Name