How alexanderritola/go-unlock-code-calculator works
This Go command-line calculator accepts a vendor/action and device identifiers, dispatches to vendor-specific unlock algorithms, and prints JSON-encoded results. Its branches cover BlackBerry MEP/PRD lookup and codes, older Huawei USB modem codes, three ZTE variants, and Alcatel C700-family codes. The BlackBerry lookup tables are a substantial internal data layer. Relationships are grounded in the shown main dispatch and function calls; README statements preserve documented capabilities where implementation details are not shown.
Main entry points: main.go Command dispatch · Blackberry.go MEP and PRD codes · findMEP.go MEP and PRD tables · Huawei.go Old modem codes
Components 10
CLI and output
- Command dispatch
main.go - JSON output
main.go
BlackBerry codes
- MEP and PRD codes
Blackberry.go - MEP and PRD tables
findMEP.go
Huawei codes
- Old modem codes
Huawei.go
ZTE codes
- Legacy codes
ZTE.go - B03 codes
ZTE.go - B04 codes
ZTE.go
Alcatel codes
- C700-family codes
Alcatel.go
Other components
- CLI user
Connections 10
- CLI user → Command dispatch: provides arguments
main.go - Command dispatch → MEP and PRD codes: dispatches unlock
main.go - Command dispatch → MEP and PRD tables: queries support
main.go - MEP and PRD codes → MEP and PRD tables: looks up codes
Blackberry.go - Command dispatch → Old modem codes: dispatches unlock
main.go - Command dispatch → Legacy codes: dispatches unlock
main.go - Command dispatch → B03 codes: dispatches unlock
main.go - Command dispatch → B04 codes: dispatches unlock
main.go - Command dispatch → C700-family codes: dispatches unlock
main.go - Command dispatch → JSON output: encodes results
main.go