{"id":38284378,"url":"https://github.com/rasyidkaromi/serialport","last_synced_at":"2026-01-17T02:02:24.066Z","repository":{"id":57537147,"uuid":"206348258","full_name":"rasyidkaromi/serialport","owner":"rasyidkaromi","description":"Windows Serial Port with GO","archived":false,"fork":false,"pushed_at":"2019-09-12T10:02:45.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T03:35:57.317Z","etag":null,"topics":["go","golang","serial","serial-communication","serial-port","serial-ports","serialport","windows"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rasyidkaromi.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":"2019-09-04T15:10:55.000Z","updated_at":"2022-01-14T06:44:42.000Z","dependencies_parsed_at":"2022-09-04T13:50:17.322Z","dependency_job_id":null,"html_url":"https://github.com/rasyidkaromi/serialport","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rasyidkaromi/serialport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasyidkaromi%2Fserialport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasyidkaromi%2Fserialport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasyidkaromi%2Fserialport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasyidkaromi%2Fserialport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rasyidkaromi","download_url":"https://codeload.github.com/rasyidkaromi/serialport/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasyidkaromi%2Fserialport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"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","golang","serial","serial-communication","serial-port","serial-ports","serialport","windows"],"created_at":"2026-01-17T02:02:23.853Z","updated_at":"2026-01-17T02:02:24.035Z","avatar_url":"https://github.com/rasyidkaromi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serialport\nWindows Serial Port with GO\n\nInstall\n---------------\ngo get github.com/rasyidkaromi/serialport\n\n\nUsage\n---------------\n```go\n\n\n        package main\n\n        import (\n          \"log\"\n          \"github.com/rasyidkaromi/serialport\"\n          \"fmt\"\n          \"time\"\n        )\n\n\n        func main (){\n          ports, err := serialport.GetPortsList()\n\n          if err != nil{\n            log.Fatal(err)\n          }\n\n          log.Println(\"Port mana yang ingin Anda gunakan?\")\n\n          for _, port := range ports{\n            fmt.Println(\"*\", port)\n          }\n\n          var portt string\n\n          fmt.Scanln(\u0026portt)\n\n          log.Println(\"Port:\", portt)\n\n          mode := \u0026serialport.Mode{\n            BaudRate: 115200,\n          }\n\n          connection := serialport.NewConnection(portt, mode)\n\n          defer connection.Close()\n\n          go func (){\n            buffer := make([]byte, 100)\n            for {\n              time.Sleep(1000 * time.Millisecond)\n              n, buf, text, isOk := connection.Read(\u0026buffer)\n\n              if isOk{\n                fmt.Println(buf)\n                fmt.Println(n)\n                fmt.Println(text)\n              }\n            }\n          } ()\n\n          var text string\n          for {\n            fmt.Scanln(\u0026text)\n\n            connection.Write(text)\n          }\n        }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasyidkaromi%2Fserialport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frasyidkaromi%2Fserialport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasyidkaromi%2Fserialport/lists"}