imei

package module
v0.0.0-...-33221c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2025 License: MIT Imports: 8 Imported by: 0

README

IMEI

Table of Content

Authors

Name GitHub
Klim Sidorov @entrlcom-klim

Examples

package main

import (
	"flida.dev/imei"
)

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

	// ...
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMEI

type IMEI struct {
	// contains filtered or unexported fields
}

IMEI — International Mobile Equipment Identity.

https://en.wikipedia.org/wiki/International_Mobile_Equipment_Identity

func NewIMEI

func NewIMEI(s string) (IMEI, error)

func (IMEI) GetCD

func (x IMEI) GetCD() imei_cd_model.CD

func (IMEI) GetSNR

func (x IMEI) GetSNR() imei_snr_model.SNR

func (IMEI) GetSVN

func (x IMEI) GetSVN() imei_svn_model.SVN

func (IMEI) GetTAC

func (x IMEI) GetTAC() imei_tac_model.TAC

func (IMEI) IsIMEI

func (x IMEI) IsIMEI() bool

func (IMEI) IsIMEISV

func (x IMEI) IsIMEISV() bool

func (IMEI) String

func (x IMEI) String() string

func (IMEI) Validate

func (x IMEI) Validate() error

Directories

Path Synopsis
model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL