code: func (s *Service) FindViews(ctx context.Context, filter platform.ViewFilter) ([]*platform.View, int, error) {
  	var ds []*platform.View
  	if filter.ID != nil {
  		d, err := s.FindViewByID(ctx, *filter.ID)
  		if err != nil && platform.ErrorCode(err) != platform.ENotFound {
  			return nil, 0, &platform.Error{
  				Err: err,
  				Op:  OpPrefix + platform.OpFindViews,
  			}
  		}
  		if d != nil {
  			ds = append(ds, d)
  		}
  
  		return ds, len(ds), nil
  	}
  
  	var err error
  	filterF := filterViewFn(filter)
  	s.viewKV.Range(func(k, v interface{}) bool {
  		d, ok := v.(*platform.View)
  		if !ok {
  			return false
  		}
  
  		if filterF(d) {
  			ds = append(ds, d)
  		}
  		return true
  	})
  	return ds, len(ds), err
  }
docs: // FindViews implements platform.ViewService interface.