// GenerateCountriesFile generate go file with countries.
GenerateCountriesFile generate go file with countries.
// GenerateCountriesFile generate go file with countries .
func GenerateCountriesFile(outputPath string, countries []string) {
	log.Printf("generate countries file: path='%s'", outputPath)
	outputFile, err := os.Create(outputPath)
	if err != nil {
		log.Fatal(err)
	}
	err = countriesTpl.Execute(
		outputFile,
		countriesFileParams{
			Package:   getPackageName(outputPath),
			Countries: countries,
		},
	)
	if err != nil {
		log.Fatal(err)
	}
	log.Printf("file generated")
}
func GenerateCountriesFile ( outputPath string , countries [ ] string ) { log . Printf ( " " , outputPath ) outputFile , err := os . Create ( outputPath ) if err != nil { log . Fatal ( err ) } err = countriesTpl . Execute ( outputFile , countriesFileParams { Package : getPackageName ( outputPath ) , Countries : countries , } , ) if err != nil { log . Fatal ( err ) } log . Printf ( " " ) }
GenerateCountriesFile generate go file with countries.
GenerateCountriesFile generate go file with countries .