Documentation
¶
Index ¶
Constants ¶
View Source
const ( OOREDOO = "Ooredoo" ATOM = "ATOM" MPT = "MPT" MYTEL = "MyTel" UNKNOWN = "Unknown" GSM_TYPE = "GSM" WCDMA_TYPE = "WCDMA" CDMA_450_TYPE = "CDMA 450 MHz" CDMA_800_TYPE = "CDMA 800 MHz" )
Variables ¶
View Source
var ( OoredooRegex = regexp.MustCompile(`^(09|\+?959)9(7|6)\d{7}$`) AtomRegex = regexp.MustCompile(`^(09|\+?959)7(9|8|7)\d{7}$`) MptRegex = regexp.MustCompile(`^(09|\+?959)(5\d{6}|4\d{7,8}|2\d{6,8}|3\d{7,8}|6\d{6}|8\d{6}|7\d{7}|9(0|1|9)\d{5,6})$`) MyTelRegex = regexp.MustCompile(`^(09|\+?959)6([5-9])\d{7}$`) MyanmarPhoneRegex = regexp.MustCompile(`^(09|\+?950?9|\+?95950?9)\d{7,9}$`) )
Functions ¶
This section is empty.
Types ¶
type MyanmarPhone ¶
type MyanmarPhone struct{}
func NewMyanmarPhone ¶
func NewMyanmarPhone() *MyanmarPhone
func (*MyanmarPhone) GetPhoneNetworkType ¶
func (mm *MyanmarPhone) GetPhoneNetworkType(phoneNumber string) string
func (*MyanmarPhone) GetTelecomName ¶
func (mm *MyanmarPhone) GetTelecomName(phoneNumber string) string
func (*MyanmarPhone) IsValidMyanmarPhone ¶
func (mm *MyanmarPhone) IsValidMyanmarPhone(phoneNumber string) bool
func (*MyanmarPhone) SanitizePhoneNumber ¶
func (mm *MyanmarPhone) SanitizePhoneNumber(phoneNumber string) string
Click to show internal directories.
Click to hide internal directories.