This is a Go package which contains all administrative locations. I includes all provinces, districts, sectors, cells and villages.
Here are some examples of how to use this package:
- Install The package
go get github.com/samueltuyizere/rwanda@latest
- Import and use in your code
package main
import (
"github.com/samueltuyizere/rwanda"
"fmt"
)
func main(){
regions := rwanda.GetALlRegions()
fmt.Print(regions)
}
- get all provinces as standalone entities
- get all districts in a province
- get all sectors in a province
- get all cells in a province
- get all villages in a province
- get all districts as standalone entities
- get all sectors in a district
- get all cells in a district
- get all villages in a district
- get all sectors as standalone entities
- get all cells in a sector
- get all villages in a sector
- get all cells as standalone entities
- get all villages in a cell
- Tests
We welcome contributions from the community! If you're interested in contributing to this package, please follow these guidelines:
- Fork the repository and clone it locally.
- Create a new branch for your contribution.
- Make your changes and ensure that the code passes all tests.
- Commit your changes and push them to your forked repository.
- Open a pull request, describing the changes you've made and why they should be merged.
Please ensure that your contributions adhere to our code of conduct and follow the established coding style.
Thank you for considering contributing to this package!