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: kac_template_builder.go
    path of file: ./repos/git-chglog/cmd/git-chglog
    
    the code of the file until where you have to start completion: package main

import "fmt"

type kacTemplateBuilderImpl struct{}

// NewKACTemplateBuilder ...
func NewKACTemplateBuilder() TemplateBuilder {
	return &kacTemplateBuilderImpl{}
}

// Build ...
func (t *kacTemplateBuilderImpl) Build(an
    
func (t *kacTemplateBuilderImpl) Build(ans *Answer) (string, error) {
	// unreleased
	tpl := t.unreleased(ans.Style, ans.CommitMessageFormat)

	// version start
	tpl += "\n{{ range .Versions }}\n"

	tpl += t.versionHeader(ans.Style)

	// commits
	tpl += t.commits(".CommitGroups", ans.CommitMessageFormat)

	// revert
	if ans.IncludeReverts {
		tpl += t.reverts()
	}

	// merges
	if ans.IncludeMerges {
		tpl += t.merges(ans.Style)
	}

	// notes
	tpl += t.notes()

	// versions end
	tpl += "\n{{ end -}}"

	// footer (links)
	tpl += t.footer(ans.Style)

	return tpl, nil
}