// GenerateBanksFile generate go file with country to bank mapping.
GenerateBanksFile generate go file with country to bank mapping.
// GenerateBanksFile generate go file with country to bank mapping .
func GenerateBanksFile(outputPath string, countryBanksSlice []CountryBanks) {
	log.Printf("generate banks file: path='%s'", outputPath)
	outputFile, err := os.Create(outputPath)
	if err != nil {
		log.Fatal(err)
	}
	err = banksTpl.Execute(
		outputFile,
		banksFileParams{
			Package:           getPackageName(outputPath),
			CountryBanksSlice: countryBanksSlice,
		},
	)
	if err != nil {
		log.Fatal(err)
	}
	log.Printf("file generated")
}
func GenerateBanksFile ( outputPath string , countryBanksSlice [ ] CountryBanks ) { log . Printf ( " " , outputPath ) outputFile , err := os . Create ( outputPath ) if err != nil { log . Fatal ( err ) } err = banksTpl . Execute ( outputFile , banksFileParams { Package : getPackageName ( outputPath ) , CountryBanksSlice : countryBanksSlice , } , ) if err != nil { log . Fatal ( err ) } log . Printf ( " " ) }
GenerateBanksFile generate go file with country to bank mapping.
GenerateBanksFile generate go file with country to bank mapping .