{"id":16220013,"url":"https://github.com/sago35/netdriver-for-go","last_synced_at":"2025-06-30T11:39:02.142Z","repository":{"id":65115718,"uuid":"581711181","full_name":"sago35/netdriver-for-go","owner":"sago35","description":"communicate from Go using `tinygo.org/x/drivers/net`","archived":false,"fork":false,"pushed_at":"2022-12-27T11:36:53.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T14:18:22.739Z","etag":null,"topics":["golang","tinygo"],"latest_commit_sha":null,"homepage":"","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/sago35.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-24T03:18:45.000Z","updated_at":"2023-01-01T05:29:57.000Z","dependencies_parsed_at":"2023-01-13T15:41:19.013Z","dependency_job_id":null,"html_url":"https://github.com/sago35/netdriver-for-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Fnetdriver-for-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Fnetdriver-for-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Fnetdriver-for-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Fnetdriver-for-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sago35","download_url":"https://codeload.github.com/sago35/netdriver-for-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749968,"owners_count":20989713,"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":["golang","tinygo"],"created_at":"2024-10-10T11:56:52.515Z","updated_at":"2025-04-07T23:46:04.069Z","avatar_url":"https://github.com/sago35.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# netdriver-for-go\n\nThis package was created to communicate from Go using `tinygo.org/x/drivers/net`.  \n\n## how to use\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\n\t\"github.com/sago35/netdriver-for-go\"\n\t\"tinygo.org/x/drivers/net\"\n\t\"tinygo.org/x/drivers/net/http\"\n)\n\nfunc main() {\n\terr := run()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n\nfunc run() error {\n\tvar buf [1024 * 10]byte\n\tnet.UseDriver(\u0026netdriver.Driver{\n\t\tMaxPacketSize: 4096,\n\t\tDebug:         false,\n\t})\n\thttp.SetBuf(buf[:])\n\n\tres, err := http.Get(\"http://tinygo.org\")\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer res.Body.Close()\n\n\tb, err := io.ReadAll(res.Body)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tfmt.Printf(\"%q\\n\", string(b))\n\treturn nil\n}\n```\n\n## LICENSE\n\nMIT\n\n## Author\n\nsago35 - \u003csago35@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsago35%2Fnetdriver-for-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsago35%2Fnetdriver-for-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsago35%2Fnetdriver-for-go/lists"}