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: folder.go
    path of file: ./repos/terraformer/providers/grafana
    
    the code of the file until where you have to start completion: package grafana

import (
	"fmt"

	"github.com/GoogleCloudPlatform/terraformer/terraformutils"
	gapi "github.com/grafana/grafana-api-golang-client"
)

type FolderGenerator struct {
	GrafanaService
}

func (g *FolderGenerator) InitResources() error {
	client, err := g.buildClient()
	if err != nil {
		return fmt.Errorf("unable to build grafana client: %v", err)
	}

	err 
    
func (g *FolderGenerator) createFolderResources(client *gapi.Client) error {
	folders, err := client.Folders()
	if err != nil {
		return fmt.Errorf("unable to list grafana folders: %v", err)
	}

	for _, folder := range folders {
		g.Resources = append(g.Resources, terraformutils.NewResource(
			fmt.Sprint(folder.ID),
			folder.Title,
			"grafana_folder",
			"grafana",
			map[string]string{
				"uid": folder.UID,
			},
			[]string{},
			map[string]interface{}{},
		))
	}

	return nil
}