zxzqh

package module
v0.0.0-...-84127f2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 6 Imported by: 0

README

zxzqh Go Reference

中华人民共和国行政区划代码

导包地址

github.com/xiaoqidun/zxzqh

数据库(自动生成)

  • generate/node_list.json
  • generate/node_tree.json

函数说明

  • NodeList 获取中华人民共和国行政区划代码扁平列表
  • NodeTree 获取中华人民共和国行政区划代码树状列表
  • CodeNode 通过中华人民共和国行政区划代码查找节点

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Code   int    `json:"code"`
	Name   string `json:"name"`
	Parent int    `json:"parent"`
}

func CodeNode

func CodeNode(code int) *Node

CodeNode 通过中华人民共和国行政区划代码查找节点

func NodeList

func NodeList() []Node

NodeList 获取中华人民共和国行政区划代码扁平列表

type Tree

type Tree struct {
	Node
	Children []Tree `json:"children,omitempty"`
}

func NodeTree

func NodeTree() []Tree

NodeTree 获取中华人民共和国行政区划代码树状列表

Jump to

Keyboard shortcuts

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