{"id":20041128,"url":"https://github.com/makiuchi-d/gozxing","last_synced_at":"2025-05-16T03:03:40.855Z","repository":{"id":40244404,"uuid":"133728138","full_name":"makiuchi-d/gozxing","owner":"makiuchi-d","description":"Port of ZXing (https://github.com/zxing/zxing) core to pure Go.","archived":false,"fork":false,"pushed_at":"2023-02-18T07:20:48.000Z","size":49875,"stargazers_count":581,"open_issues_count":8,"forks_count":69,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-08T13:08:58.745Z","etag":null,"topics":["2d-barcodes","barcodes","golang","qrcode-generator","qrcode-reader","zxing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makiuchi-d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-16T22:08:52.000Z","updated_at":"2025-04-01T20:19:32.000Z","dependencies_parsed_at":"2024-06-18T12:42:25.285Z","dependency_job_id":null,"html_url":"https://github.com/makiuchi-d/gozxing","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makiuchi-d%2Fgozxing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makiuchi-d%2Fgozxing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makiuchi-d%2Fgozxing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makiuchi-d%2Fgozxing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makiuchi-d","download_url":"https://codeload.github.com/makiuchi-d/gozxing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459082,"owners_count":22074604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d-barcodes","barcodes","golang","qrcode-generator","qrcode-reader","zxing"],"created_at":"2024-11-13T10:45:30.110Z","updated_at":"2025-05-16T03:03:35.847Z","avatar_url":"https://github.com/makiuchi-d.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gozxing A Barcode Scanning/Encoding Library for Go\n\n[![Build Status](https://github.com/makiuchi-d/gozxing/actions/workflows/main.yml/badge.svg)](https://github.com/makiuchi-d/gozxing/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/makiuchi-d/gozxing/branch/master/graph/badge.svg)](https://codecov.io/gh/makiuchi-d/gozxing)\n\n[ZXing](https://github.com/zxing/zxing) is an open-source, multi-format 1D/2D barcode image processing library for Java.\nThis project is a port of ZXing core library to pure Go.\n\n## Porting Status (supported formats)\n\n### 2D barcodes\n\n| Format      | Scanning           | Encoding           |\n|-------------|--------------------|--------------------|\n| QR Code     | :heavy_check_mark: | :heavy_check_mark: |\n| Data Matrix | :heavy_check_mark: | :heavy_check_mark: |\n| Aztec       | :heavy_check_mark: |                    |\n| PDF 417     |                    |                    |\n| MaxiCode    |                    |                    |\n\n\n### 1D product barcodes\n\n| Format      | Scanning           | Encoding           |\n|-------------|--------------------|--------------------|\n| UPC-A       | :heavy_check_mark: | :heavy_check_mark: |\n| UPC-E       | :heavy_check_mark: | :heavy_check_mark: |\n| EAN-8       | :heavy_check_mark: | :heavy_check_mark: |\n| EAN-13      | :heavy_check_mark: | :heavy_check_mark: |\n\n### 1D industrial barcode\n\n| Format       | Scanning           | Encoding           |\n|--------------|--------------------|--------------------|\n| Code 39      | :heavy_check_mark: | :heavy_check_mark: |\n| Code 93      | :heavy_check_mark: | :heavy_check_mark: |\n| Code 128     | :heavy_check_mark: | :heavy_check_mark: |\n| Codabar      | :heavy_check_mark: | :heavy_check_mark: |\n| ITF          | :heavy_check_mark: | :heavy_check_mark: |\n| RSS-14       | :heavy_check_mark: | -                  |\n| RSS-Expanded |                    |                    |\n\n### Special reader/writer\n\n| Reader/Writer                | Porting status     |\n|------------------------------|--------------------|\n| MultiFormatReader            |                    |\n| MultiFormatWriter            |                    |\n| ByQuadrantReader             |                    |\n| GenericMultipleBarcodeReader |                    |\n| QRCodeMultiReader            | :heavy_check_mark: |\n| MultiFormatUPCEANReader      | :heavy_check_mark: |\n| MultiFormatOneDReader        |                    |\n\n## Usage Examples\n\n### Scanning QR code\n\n```Go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"image\"\n\t_ \"image/jpeg\"\n\t\"os\"\n\n\t\"github.com/makiuchi-d/gozxing\"\n\t\"github.com/makiuchi-d/gozxing/qrcode\"\n)\n\nfunc main() {\n\t// open and decode image file\n\tfile, _ := os.Open(\"qrcode.jpg\")\n\timg, _, _ := image.Decode(file)\n\n\t// prepare BinaryBitmap\n\tbmp, _ := gozxing.NewBinaryBitmapFromImage(img)\n\n\t// decode image\n\tqrReader := qrcode.NewQRCodeReader()\n\tresult, _ := qrReader.Decode(bmp, nil)\n\n\tfmt.Println(result)\n}\n```\n\n### Generating CODE128 barcode\n\n```Go\npackage main\n\nimport (\n\t\"image/png\"\n\t\"os\"\n\n\t\"github.com/makiuchi-d/gozxing\"\n\t\"github.com/makiuchi-d/gozxing/oned\"\n)\n\nfunc main() {\n\t// Generate a barcode image (*BitMatrix)\n\tenc := oned.NewCode128Writer()\n\timg, _ := enc.Encode(\"Hello, Gophers!\", gozxing.BarcodeFormat_CODE_128, 250, 50, nil)\n\n\tfile, _ := os.Create(\"barcode.png\")\n\tdefer file.Close()\n\n\t// *BitMatrix implements the image.Image interface,\n\t// so it is able to be passed to png.Encode directly.\n\t_ = png.Encode(file, img)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakiuchi-d%2Fgozxing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakiuchi-d%2Fgozxing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakiuchi-d%2Fgozxing/lists"}