contracts

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CnRegion

type CnRegion interface {
	// ParseByCode 通过编码解析出省市区街道
	ParseByCode(code string) (province, city, area, street string, err error)
	// ParseByName 通过省市区街道反向解析出编码
	ParseByName(province, city, area string, street ...string) (code string, err error)
	// Search 通过关键字搜索省市区街道编码
	Search(keyword string) (result []cnregion.Region)
}

Jump to

Keyboard shortcuts

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