{"id":21620407,"url":"https://github.com/mikelpsv/barcode-scan-mod","last_synced_at":"2026-05-22T14:02:16.528Z","repository":{"id":144360792,"uuid":"614731477","full_name":"mikelpsv/barcode-scan-mod","owner":"mikelpsv","description":"Golang module for working with a barcode scanner","archived":false,"fork":false,"pushed_at":"2024-03-19T14:03:24.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T21:33:00.172Z","etag":null,"topics":["barcode","libusb","scanner","usb"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikelpsv.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":"2023-03-16T07:48:43.000Z","updated_at":"2023-03-17T14:22:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a7a144c-a0c6-4167-9da1-9379244142d3","html_url":"https://github.com/mikelpsv/barcode-scan-mod","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"0d17fa1b7f56fce9dbbbed2bb3a58251b69c014d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikelpsv%2Fbarcode-scan-mod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikelpsv%2Fbarcode-scan-mod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikelpsv%2Fbarcode-scan-mod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikelpsv%2Fbarcode-scan-mod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikelpsv","download_url":"https://codeload.github.com/mikelpsv/barcode-scan-mod/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244278410,"owners_count":20427498,"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":["barcode","libusb","scanner","usb"],"created_at":"2024-11-24T23:11:35.948Z","updated_at":"2026-05-22T14:02:16.439Z","avatar_url":"https://github.com/mikelpsv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barcode scanner module\nGolang module for working with a barcode scanner\n\n\nYou must first install libusb-1.0. This is pretty straightforward on linux. The cgo package should be able to find it if you install it in the default manner or use your distribution's package manager. For Ubuntu:\n``` \n$ sudo apt-get install libusb-1.0-0-dev\n```\n\nYou may need to grant the current user access to the USB device. This is usually done by adding a file to /etc/udev/rules.d called 50-usb-scale.conf and contents like this:\n```\nSUBSYSTEM==\"usb\", ATTR{idVendor}==\"HEX1\", ATTR{idProduct}==\"HEX2\", MODE=\"0666\"\n```\nWhere `HEX1` and `HEX2` are replaced by the Vendor and Product ID respectively.\n\nInstead, to match the interface type, you can try replacing ATTR{idVendor}==\"HEX1\", ATTR{idProduct}==\"HEX2\" with a match for `bInterfaceClass` equal to 03 (HID):\n```\nSUBSYSTEM==\"usb\", ATTR{bInterfaceClass}==\"03\", MODE=\"0666\"\n```\n\nThen apply udev rules and reboot the platform:\n```\n$ sudo udevadm control --reload-rules \u0026\u0026 udevadm trigger\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikelpsv%2Fbarcode-scan-mod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikelpsv%2Fbarcode-scan-mod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikelpsv%2Fbarcode-scan-mod/lists"}