Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistrictModel ¶
type DistrictModel struct { Province ProvinceModel `json:"province"` DistrictName string `json:"district_name"` DistrictURL string `json:"district_url"` }
func GetDistricts ¶
func GetDistricts(province ProvinceModel) (districts []DistrictModel)
GetDistricts to scrapping District data from kemebdikbud.go.id
type ProvinceModel ¶
type ProvinceModel struct { ProvinceName string `json:"province_name"` ProvinceURL string `json:"province_url"` }
func GetProvinces ¶
func GetProvinces() (provinces []ProvinceModel)
GetProvinces to scrapping Province data from kemebdikbud.go.id
type SubdistrictModel ¶
type SubdistrictModel struct { Province ProvinceModel `json:"province"` District DistrictModel `json:"district"` SubdistrictName string `json:"subdistrict_name"` SubdistrictURL string `json:"subdistrict_url"` }
func GetSubdistricts ¶
func GetSubdistricts(district DistrictModel) (subdistricts []SubdistrictModel)
GetSubdistricts to scrapping Subdistrict data from kemebdikbud.go.id
type VillageModel ¶
type VillageModel struct { Province ProvinceModel `json:"province"` District DistrictModel `json:"district"` Subdistrict SubdistrictModel `json:"subdistrict"` VillageName string `json:"village_name"` VillageURL string `json:"village_url"` PostalCode string `json:"postal_code"` }
func GetVillages ¶
func GetVillages(subdistrict SubdistrictModel) (villages []VillageModel)
GetVillages to scrapping Village data from kemebdikbud.go.id
Click to show internal directories.
Click to hide internal directories.