{"id":23762177,"url":"https://github.com/rosylilly/pio","last_synced_at":"2026-04-18T01:34:57.811Z","repository":{"id":57575662,"uuid":"355810717","full_name":"rosylilly/pio","owner":"rosylilly","description":"io with progress","archived":false,"fork":false,"pushed_at":"2021-04-08T10:14:01.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T10:35:54.928Z","etag":null,"topics":["golang","golang-library","io"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/rosylilly/pio","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/rosylilly.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":"2021-04-08T07:45:43.000Z","updated_at":"2021-04-08T10:14:04.000Z","dependencies_parsed_at":"2022-09-26T19:02:26.750Z","dependency_job_id":null,"html_url":"https://github.com/rosylilly/pio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rosylilly/pio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosylilly%2Fpio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosylilly%2Fpio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosylilly%2Fpio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosylilly%2Fpio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosylilly","download_url":"https://codeload.github.com/rosylilly/pio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosylilly%2Fpio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","golang-library","io"],"created_at":"2024-12-31T21:16:49.291Z","updated_at":"2026-04-18T01:34:57.795Z","avatar_url":"https://github.com/rosylilly.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pio - io with progress\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/rosylilly/pio.svg)](https://pkg.go.dev/github.com/rosylilly/pio)\n[![test](https://github.com/rosylilly/pio/actions/workflows/test.yml/badge.svg)](https://github.com/rosylilly/pio/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/rosylilly/pio/branch/main/graph/badge.svg?token=kMUjFmnxRY)](https://codecov.io/gh/rosylilly/pio)\n\n## Example\n\n```golang\npackage main\n\nimport (\n\t\"bytes\"\n\t\"errors\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/rosylilly/pio\"\n)\n\nfunc main() {\n\tfile, err := os.Open(\"README.md\")\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tlogger := log.New(os.Stdout, \"\", log.Ltime)\n\treader, err := pio.NewReader(file, pio.WithLogger(logger))\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tbuffer := bytes.NewBuffer([]byte{})\n\tfor {\n\t\t_, err := io.CopyN(buffer, reader, 100)\n\t\tif err != nil {\n\t\t\tif errors.Is(err, io.EOF) {\n\t\t\t\tbreak\n\t\t\t} else {\n\t\t\t\tlog.Fatalln(err)\n\t\t\t}\n\t\t}\n\t}\n\n\tfmt.Println(buffer.String())\n}\n```\n\n[![asciicast](https://asciinema.org/a/405916.svg)](https://asciinema.org/a/405916)\n\n## License\n\n[MIT License](https://github.com/rosylilly/pio/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosylilly%2Fpio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosylilly%2Fpio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosylilly%2Fpio/lists"}