You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: provider.go
    path of file: ./repos/terracognita/google
    
    the code of the file until where you have to start completion: package google

import (
	"context"
	"fmt"

	"github.com/cycloidio/terracognita/cache"
	"github.com/cycloidio/terracognita/errcode"
	"github.com/cycloidio/terracognita/filter"
	"github.com/cycloidio/terracognita/log"
	"github.com/cycloidio/terracognita/provider"
	"github.com/hashicorp/go-cty/cty"

	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
	tfgoogle "github.com/hashicorp/terraform-pr
    
func (g *google) Resources(ctx context.Context, t string, f *filter.Filter) ([]provider.Resource, error) {
	rt, err := ResourceTypeString(t)
	if err != nil {
		return nil, err
	}

	rfn, ok := resources[rt]
	if !ok {
		return nil, errors.Errorf("the resource %q it's not implemented", t)
	}

	resources, err := rfn(ctx, g, t, f)
	if err != nil {
		// we filter the error from GCP and return a custom error
		// type if it's an error that we want to skip
		// Remove all wrap layer to get the right type
		unwrapErr := err
		for errors.Unwrap(unwrapErr) != nil {
			unwrapErr = errors.Unwrap(unwrapErr)
		}
		if reqErr, ok := unwrapErr.(*googleapi.Error); ok {
			// https://pkg.go.dev/google.golang.org/api@v0.68.0/googleapi#Error
			for _, gerr := range reqErr.Errors {
				if _, ok := skippableCodes[gerr.Reason]; ok {
					return nil, fmt.Errorf("%w: %v", errcode.ErrProviderAPI, reqErr)
				}
			}

		}

		return nil, errors.Wrapf(err, "error while reading from resource %q", t)
	}

	return resources, nil
}