Skip to content

International Mobile Equipment Identity (IMEI)

License

Notifications You must be signed in to change notification settings

entrlcom/go-imei

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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