func (receiver *EphemeralTemplateGeneration) GetSingle(model extension.Model, db *gorm.DB, parameters gin.Params, urlValues url.Values, queryFields string) (interface{}, error) {
	modelKey, err := model.GetModelKey(model, "")
	if err != nil {
		logging.Logger().Debug(err.Error())
		return nil, err
	}
	name := parameters.ByName(modelKey.KeyParameter)
	ephemeralTemplate, exists := nameEphemeralTemplateMap[name]
	if !exists {
		logging.Logger().Debug(errors.New("record not found"))
		return nil, errors.New("record not found")
	}
	tpl := tplpkg.New("ephemeral_template")
	templateFuncMaps := extension.GetRegisteredTemplateFuncMapList()
	for _, templateFuncMap := range templateFuncMaps {
		tpl = tpl.Funcs(templateFuncMap)
	}
	tpl, err = tpl.Parse(ephemeralTemplate.TemplateContent)
	if err != nil {
		logging.Logger().Debug(err.Error())
		return nil, err
	}
	templateParameter := &templateParameter{
		ModelStore:               modelstorepkg.NewModelStore(db),
		Collection:               collectionutilpkg.GetUtility(),
		Conversion:               conversionutilpkg.GetUtility(),
		MapStruct:                mapstructutilpkg.GetUtility(),
		Network:                  networkutilpkg.GetUtility(),
		String:                   stringutilpkg.GetUtility(),
		Parameter:                map[interface{}]interface{}{},
		Query:                    urlValues,
		ProgramInformation:       extension.GetRegisteredProgramInformation(),
		Logging:                  loggingutilpkg.GetUtility(),
		EnvironmentalVariableSet: extension.GetCurrentEnvironmentalVariableSet(),
	}
	var doc bytes.Buffer
	if err := tpl.Execute(&doc, templateParameter); err != nil {
		logging.Logger().Debug(err.Error())
		return nil, err
	}
	result := doc.String()
	return result, nil
}
GetSingle corresponds HTTP GET message and handles a request for a single resource to get the information
package model
import (
	"bytes"
	"errors"
	"github.com/gin-gonic/gin"
	"github.com/jinzhu/gorm"
	"github.com/qb0C80aE/clay/extension"
	"github.com/qb0C80aE/clay/logging"
	collectionutilpkg "github.com/qb0C80aE/clay/util/collection"
	conversionutilpkg "github.com/qb0C80aE/clay/util/conversion"
	loggingutilpkg "github.com/qb0C80aE/clay/util/logging"
	mapstructutilpkg "github.com/qb0C80aE/clay/util/mapstruct"
	modelstorepkg "github.com/qb0C80aE/clay/util/modelstore"
	networkutilpkg "github.com/qb0C80aE/clay/util/network"
	stringutilpkg "github.com/qb0C80aE/clay/util/string"
	"net/url"
	tplpkg "text/template"
)
type EphemeralTemplateGeneration struct {
	Base
	Name string `json:"name" yaml:"name" gorm:"primary_key"`
}
func NewEphemeralTemplateGeneration() *EphemeralTemplateGeneration {
	return &EphemeralTemplateGeneration{}
}
func (receiver *EphemeralTemplateGeneration) GetContainerForMigration() (interface{}, error) {
	return nil, nil
}