mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-12 22:42:23 +00:00
changed executeVendorTemplate's paramaters names
This commit is contained in:
parent
f175c2d20b
commit
30772e4ea0
@ -23,12 +23,12 @@ func Vendor(data []byte, vendorTmplPath, vendorTmplName, commit string) ([]byte,
|
||||
return buf.Bytes(), nil
|
||||
}
|
||||
|
||||
func executeVendorTemplate(out io.Writer, regexpList []string, vendorTmplPath, languagesTmpl, commit string) error {
|
||||
func executeVendorTemplate(out io.Writer, regexpList []string, vendorTmplPath, vendorTmpl, commit string) error {
|
||||
fmap := template.FuncMap{
|
||||
"getCommit": func() string { return commit },
|
||||
}
|
||||
|
||||
t := template.Must(template.New(languagesTmpl).Funcs(fmap).ParseFiles(vendorTmplPath))
|
||||
t := template.Must(template.New(vendorTmpl).Funcs(fmap).ParseFiles(vendorTmplPath))
|
||||
if err := t.Execute(out, regexpList); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user