kemdikbud

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: 5 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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