diff --git a/packages/i18nify-go/example/example.go b/packages/i18nify-go/example/example.go index 8646956b..ce81882b 100644 --- a/packages/i18nify-go/example/example.go +++ b/packages/i18nify-go/example/example.go @@ -35,11 +35,12 @@ func main() { fmt.Println(state.GetName()) //Karnataka fmt.Println(state.GetCities()[0]) //{Yellāpur nan Asia/Kolkata [581337 581337 ...} - // Get State details + // Get States by zipcode madhyaPradesh := countryIN.GetStatesByZipCode("452010")[0] fmt.Printf("For pincode 452010 state : %s\n", madhyaPradesh) // {[{Wārāseonī nan Asia/Kolkata [481331 ...} fmt.Printf("State name %s\n", madhyaPradesh.GetName()) + // Get Cities by zipcode cityList := countryIN.GetCitiesByZipCode("452010") fmt.Println("Cities :") for _, city := range cityList {