Skip to content

根据微信返回的地区字符串转换为汉字

License

Notifications You must be signed in to change notification settings

vickxxx/wxregion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wxregion

获取微信用户信息中原始地区信息为 CN、Beijing、Chaoyang 这种格式的英文(注意不是汉语拼音),某些情况下需要手动切换为中文,本库提供该能力。

// demo

region := WxRegionToCN("Cn", "Beijing", "chaoyang")
fmt.Println(region)
// {中国 北京 朝阳}

region = WxRegionToCN("Cn", "Beijing", "chaoyang2")
fmt.Println(region)
// {中国 北京 chaoyang2}

About

根据微信返回的地区字符串转换为汉字

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages