package
module
Version:
v0.0.0-...-84127f2
Opens a new window with list of versions in this module.
Published: Apr 17, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
zxzqh
中华人民共和国行政区划代码
导包地址
github.com/xiaoqidun/zxzqh
数据库(自动生成)
- generate/node_list.json
- generate/node_tree.json
函数说明
- NodeList 获取中华人民共和国行政区划代码扁平列表
- NodeTree 获取中华人民共和国行政区划代码树状列表
- CodeNode 通过中华人民共和国行政区划代码查找节点
Documentation
¶
type Node struct {
Code int `json:"code"`
Name string `json:"name"`
Parent int `json:"parent"`
}
CodeNode 通过中华人民共和国行政区划代码查找节点
NodeList 获取中华人民共和国行政区划代码扁平列表
type Tree struct {
Node
Children []Tree `json:"children,omitempty"`
}
NodeTree 获取中华人民共和国行政区划代码树状列表
Source Files
¶
Click to show internal directories.
Click to hide internal directories.