code: func (f *defaultFormats) ContainsFormat(strfmt Format) bool {
  	f.Lock()
  	defer f.Unlock()
  	tpe := reflect.TypeOf(strfmt)
  	if tpe.Kind() == reflect.Ptr {
  		tpe = tpe.Elem()
  	}
  
  	for _, v := range f.data {
  		if v.Type == tpe {
  			return true
  		}
  	}
  	return false
  }
docs: // ContainsFormat returns true if this registry contains the specified format