Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 726 Bytes

README.md

File metadata and controls

43 lines (31 loc) · 726 Bytes

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