kemendagri

package
v0.0.0-...-2e27039 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type District

type District struct {
	Id        string `csv:"id" json:"id"`
	RegencyId string `csv:"regency_id" json:"regency_id"`
	Name      string `csv:"name" json:"name"`
}

func GetDistricts

func GetDistricts() []*District

GetDistricts returns all districts as a slice of District structs

type Province

type Province struct {
	Id   string `csv:"id" json:"id"`
	Name string `csv:"name" json:"name"`
}

func GetProvinces

func GetProvinces() []*Province

GetProvinces returns all provinces as a slice of Province structs

type Regency

type Regency struct {
	Id         string `csv:"id" json:"id"`
	ProvinceId string `csv:"province_id" json:"province_id"`
	Name       string `csv:"name" json:"name"`
}

func GetRegencies

func GetRegencies() []*Regency

GetRegencies returns all regencies as a slice of Regency structs

type Village

type Village struct {
	Id         string `csv:"id" json:"id"`
	DistrictId string `csv:"district_id" json:"district_id"`
	Name       string `csv:"name" json:"name"`
}

func GetVillages

func GetVillages() []*Village

GetVillages returns all villages as a slice of Village structs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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