std

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileName

func FileName(filename string) string

FileName 将文件名转为合法的文件名

func PhoneAddAreaCode added in v0.0.10

func PhoneAddAreaCode(phone string, countryCode string) string

PhoneAddAreaCode 给号码添加上+号和区号

func PhoneKeepNumbersOnly added in v0.0.10

func PhoneKeepNumbersOnly(phone string) string

PhoneKeepNumbersOnly 只保留下数字

func PhoneRemoveAreaCode added in v0.0.10

func PhoneRemoveAreaCode(phone string, countryCode string) string

PhoneRemoveAreaCode 移除号码前面的+号和区号

Types

type Countries added in v0.0.10

type Countries struct {
	Code     string `json:"code"`
	AreaCode string `json:"area_code"`
	Name     string `json:"name"`
}

func GetCountryInfo added in v0.0.10

func GetCountryInfo(countryCode string) (Countries, error)

GetCountryInfo 获取指定国家或地区的区号及名称-根据国家或地区代码

Jump to

Keyboard shortcuts

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