/go-imei

International Mobile Equipment Identity (IMEI)

Primary LanguageGoMIT LicenseMIT

IMEI

Table of Content

Examples

package main

import (
	"entrlcom.dev/imei"
)

func main() {
	v, err := imei.NewIMEI("35-209900-176148-1")
	if err != nil {
		// TODO: Handle error.
		return
	}

	_ = v.CD().String() // "1".
	_ = v.IsIMEI() // true.
	_ = v.IsIMEISV() // false.
	_ = v.SNR().String() // "176148".
	_ = v.String() // "35 209900 176148 1".
	_ = v.SVN().IsZero() // true.
	_ = v.TAC().RBI().String() // "35".
	_ = v.TAC().ID() // "209900".
}

License

MIT

Links