changed function name executeUtilsTemplate to executeVendorTemplate

This commit is contained in:
Manuel Carmona 2017-04-10 10:20:38 +02:00
parent e998b0ff2e
commit eaf473743b

View File

@ -16,14 +16,14 @@ func Vendor(data []byte, uitlsTmplPath, utilsTmplName, commit string) ([]byte, e
}
buf := &bytes.Buffer{}
if err := executeUtilsTemplate(buf, regexpList, uitlsTmplPath, utilsTmplName, commit); err != nil {
if err := executeVendorTemplate(buf, regexpList, uitlsTmplPath, utilsTmplName, commit); err != nil {
return nil, err
}
return buf.Bytes(), nil
}
func executeUtilsTemplate(out io.Writer, regexpList []string, languagesTmplPath, languagesTmpl, commit string) error {
func executeVendorTemplate(out io.Writer, regexpList []string, languagesTmplPath, languagesTmpl, commit string) error {
fmap := template.FuncMap{
"getCommit": func() string { return commit },
}