Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChinaArea = NewAreaManage()
View Source
var RemoteUrl string
Functions ¶
Types ¶
type Area ¶
type Area struct { Name string `json:"name,omitempty"` Code string `json:"code,omitempty"` Children map[string]*Area `json:"children,omitempty"` }
func SearchProvince ¶
type AreaManage ¶
type AreaManage struct {
// contains filtered or unexported fields
}
func NewAreaManage ¶
func NewAreaManage() *AreaManage
func (*AreaManage) Load ¶
func (p *AreaManage) Load() error
func (*AreaManage) SearchProvince ¶
func (p *AreaManage) SearchProvince(province string) (*Area, bool)
Click to show internal directories.
Click to hide internal directories.