code: func generateFile(scripts []script, tmplFile string, dest string) error {
  	destFile, err := os.Create(dest)
  	if err != nil {
  		return err
  	}
  	tmpl, err := template.ParseFiles(tmplFile)
  	if err != nil {
  		return err
  	}
  	return tmpl.Execute(destFile, scripts)
  }
docs: // generateFile generates go source code and writes to
  // the source file located at dest (creating it if needed).
  // It executes the template located at tmplFile with scripts
  // as the context.