func (t *Temporary) GenerateFile(file string, tpl *template.Template, args interface{}) error {
	buf := bytes.NewBuffer([]byte{})
	if err := tpl.Execute(buf, args); err != nil {
		return fmt.Errorf("failed to generate: %v", err)
	}
	return t.WriteFile(file, buf)
}
// GenerateFile is equivalent to calling WriteFile with the results of tpl.Execute(..., args)
GenerateFile is equivalent to calling WriteFile with the results of tpl.Execute(..., args)
// GenerateFile is equivalent to calling WriteFile with the results of tpl . Execute ( ... args )
func (t *Temporary) GenerateFile(file string, tpl *template.Template, args interface{}) error {
	buf := bytes.NewBuffer([]byte{})
	if err := tpl.Execute(buf, args); err != nil {
		return fmt.Errorf("failed to generate: %v", err)
	}
	return t.WriteFile(file, buf)
}
func ( t * Temporary ) GenerateFile ( file string , tpl * template . Template , args interface { } ) error { buf := bytes . NewBuffer ( [ ] byte { } ) if err := tpl . Execute ( buf , args ) ; err != nil { return fmt . Errorf ( " " , err ) } return t . WriteFile ( file , buf ) }
GenerateFile is equivalent to calling WriteFile with the results of tpl.Execute(..., args)
GenerateFile is equivalent to calling WriteFile with the results of tpl . Execute ( ... args )