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: process.go
    path of file: ./repos/jet/generator/template
    
    the code of the file until where you have to start completion: package template

import (
	"bytes"
	"errors"
	"fmt"
	"github.com/go-jet/jet/v2/internal/utils/filesys"
	"path"
	"strings"
	"text/template"

	"github.com/go-jet/jet/v2/generator/metadata"
	"github.com/go-jet/jet/v2/internal/jet"
)

// ProcessSchema will process schema metadata and constructs go files using generator Template
func ProcessSchema(dirPath string, schemaMetaData metadata.Schema, generatorTemplate Template) error {
	if schemaMetaData.IsEmpty() {
		return nil
	}

	schemaTemplate := generatorTemplate.Schema(schemaMetaData)
	schemaPath := path.Join(dirPath, schemaTemplate.Path)

	fmt.Println("Destination directory:", schemaPath)
	fmt.
    
func processTableModels(fileTypes, modelDirPath string, tablesMetaData []metadata.Table, modelTemplate Model) error {
	if len(tablesMetaData) == 0 {
		return nil
	}
	fmt.Printf("Generating %s model files...\n", fileTypes)

	for _, tableMetaData := range tablesMetaData {
		var tableTemplate TableModel

		if fileTypes == "table" {
			tableTemplate = modelTemplate.Table(tableMetaData)
		} else {
			tableTemplate = modelTemplate.View(tableMetaData)
		}

		if tableTemplate.Skip {
			continue
		}

		text, err := generateTemplate(
			autoGenWarningTemplate+tableModelFileTemplate,
			tableMetaData,
			template.FuncMap{
				"package": func() string {
					return modelTemplate.PackageName()
				},
				"modelImports": func() []string {
					return getTableModelImports(tableTemplate, tableMetaData)
				},
				"tableTemplate": func() TableModel {
					return tableTemplate
				},
				"structField": func(columnMetaData metadata.Column) TableModelField {
					return tableTemplate.Field(columnMetaData)
				},
			})
		if err != nil {
			return fmt.Errorf("failed to generate model type '%s': %w", tableMetaData.Name, err)
		}

		err = filesys.FormatAndSaveGoFile(modelDirPath, tableTemplate.FileName, text)
		if err != nil {
			return fmt.Errorf("failed to save '%s' model type: %w", tableTemplate.FileName, err)
		}
	}

	return nil
}