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