pincodes

package module
v0.0.0-...-d817d3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 4 Imported by: 0

README

Introduction

Go package with embedded csv of Indian Pincodes(Zipcodes).

Install
    go get github.com/dropdevrahul/pincodes-india/pincodes-in-go 
Usage
package main

import (
	"github.com/dropdevrahul/pincodes-india/pincodes-in-go"
)

func main() {
    result, err := pincodes.Load()

    fmt.Println(result[110001])
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (map[int]Pincode, error)

Types

type Pincode

type Pincode struct {
	CircleName   string
	RegionName   string
	DivisionName string
	OfficeName   string
	Pincode      int
	OfficeType   string
	Delivery     string
	District     string
	StateName    string
	Latitude     string
	Longitude    string
}

"CircleName","RegionName","DivisionName","OfficeName","Pincode","OfficeType","Delivery", "District","StateName","Latitude","Longitude"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL