area

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

View Source
var (
	Maps        []Location
	ProvinceMap = map[string]string{} // 省份
	CityMap     = map[string]string{} // 城市
	AreaMap     = map[string]string{} // 地区
	StreetMap   = map[string]string{} // 街道
)

Functions

func IsValid

func IsValid(provinceCode string, cityCode string, areaCode string, streetCode string) bool

Types

type Location

type Location struct {
	Name     string     `json:"name"`
	Code     string     `json:"code"`
	Children []Location `json:"children,omitempty"`
}

func LookUp

func LookUp(fullAreaCode string) (*Location, error)

Jump to

Keyboard shortcuts

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