func NewTemplateMapper(tmpl *template.Template) *TemplateMapper {
	return &TemplateMapper{
		tmpl: tmpl,
	}
}
NewTemplateMapper creates a new TemplateMapper given a Template.
package guid2english
import (
	"bytes"
	"regexp"
	"text/template"
	"github.com/linuxboot/fiano/pkg/guid"
	"github.com/linuxboot/fiano/pkg/knownguids"
	"github.com/linuxboot/fiano/pkg/log"
	"golang.org/x/text/transform"
)
var guidRegex = regexp.MustCompile(
	"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}",
)
var partialguidRegex = regexp.MustCompile(
	"[-a-fA-F0-9]{1,36}$",
)
type Mapper interface {
	Map(guid.GUID) []byte
}
type TemplateMapper struct {
	tmpl *template.Template
}