{"id":16372585,"url":"https://github.com/hedhyw/go-serial-detector","last_synced_at":"2025-10-10T07:16:01.106Z","repository":{"id":57516909,"uuid":"133973350","full_name":"hedhyw/Go-Serial-Detector","owner":"hedhyw","description":"A go library for determining active serial ports.","archived":false,"fork":false,"pushed_at":"2022-01-11T04:06:17.000Z","size":17,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-10-10T07:16:00.707Z","etag":null,"topics":["go","go-library","golang","linux","procfs","serial","serial-ports","sysfs","udev"],"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/hedhyw.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}},"created_at":"2018-05-18T15:36:51.000Z","updated_at":"2025-01-16T08:53:20.000Z","dependencies_parsed_at":"2022-09-15T21:50:46.092Z","dependency_job_id":null,"html_url":"https://github.com/hedhyw/Go-Serial-Detector","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hedhyw/Go-Serial-Detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedhyw%2FGo-Serial-Detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedhyw%2FGo-Serial-Detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedhyw%2FGo-Serial-Detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedhyw%2FGo-Serial-Detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hedhyw","download_url":"https://codeload.github.com/hedhyw/Go-Serial-Detector/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedhyw%2FGo-Serial-Detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003168,"owners_count":26083533,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go","go-library","golang","linux","procfs","serial","serial-ports","sysfs","udev"],"created_at":"2024-10-11T03:11:52.573Z","updated_at":"2025-10-10T07:16:01.071Z","avatar_url":"https://github.com/hedhyw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Serial-Detector\n\nThis is a package that allows you to list active serial ports:\n- `/dev/ttyS*`;\n- `/dev/ttyUSB*`.\n\nIn linux systems information is obtained from `udev`, `sysfs` or `procfs`.\n\n# OS support\n\nThis package currently supports only linux systems.\n\n# Usage\n\n```golang\nimport (\n  \"log\"\n\n  \"github.com/hedhyw/Go-Serial-Detector/pkg/v1/serialdet\"\n)\n\nif list, err := serialdet.List(); err == nil {\n  for _, p := range list {\n    // p.Description():\n    //   returns short information about serial port.\n    // p.Path():\n    //   returns path to device, for example: \"/dev/ttyUSB1\".\n    log.Print(p.Description(), \" \", p.Path())\n  }\n}\n\n```\n\n# How to get\n\n`go get github.com/hedhyw/Go-Serial-Detector/pkg/v1/serialdet`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhedhyw%2Fgo-serial-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhedhyw%2Fgo-serial-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhedhyw%2Fgo-serial-detector/lists"}