- 增加[获取运营商类型名称]方法
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

master v1.0.6
李光春 2 years ago
parent ab275ef276
commit 34150d18fd

@ -0,0 +1,15 @@
package goverify
// 功能类型
var typeName = map[string]string{
Mobile: "移动",
Unicom: "联通",
Telecom: "电信",
Broadnet: "广电",
Virtual: "虚拟",
}
// GetTypeName 获取运营商类型名称
func GetTypeName(Type string) string {
return typeName[Type]
}

@ -0,0 +1,7 @@
package goverify
import "testing"
func TestGetTypeName(t *testing.T) {
t.Log(GetTypeName(Mobile))
}

@ -1,3 +1,3 @@
package goverify
const Version = "1.0.5"
const Version = "1.0.6"

Loading…
Cancel
Save