{"id":42088694,"url":"https://github.com/enr/zipext","last_synced_at":"2026-01-26T10:35:07.997Z","repository":{"id":14597623,"uuid":"17314604","full_name":"enr/zipext","owner":"enr","description":"Go library to manipulate zip files","archived":false,"fork":false,"pushed_at":"2022-09-24T17:09:29.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-14T22:35:50.267Z","etag":null,"topics":["go","go-library","hacktoberfest","zip"],"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/enr.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":"2014-03-01T12:33:02.000Z","updated_at":"2025-02-19T19:02:25.000Z","dependencies_parsed_at":"2022-08-26T22:21:16.872Z","dependency_job_id":null,"html_url":"https://github.com/enr/zipext","commit_stats":null,"previous_names":["enr/go-zipext"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/enr/zipext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enr%2Fzipext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enr%2Fzipext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enr%2Fzipext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enr%2Fzipext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enr","download_url":"https://codeload.github.com/enr/zipext/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enr%2Fzipext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28774734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T09:42:00.929Z","status":"ssl_error","status_checked_at":"2026-01-26T09:42:00.591Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["go","go-library","hacktoberfest","zip"],"created_at":"2026-01-26T10:35:07.339Z","updated_at":"2026-01-26T10:35:07.988Z","avatar_url":"https://github.com/enr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go zipext\n\n![CI Linux](https://github.com/enr/zipext/workflows/CI%20Nix/badge.svg)\n![CI Windows](https://github.com/enr/zipext/workflows/CI%20Windows/badge.svg)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/enr/zipext)](https://pkg.go.dev/github.com/enr/zipext)\n[![Go Report Card](https://goreportcard.com/badge/github.com/enr/zipext)](https://goreportcard.com/report/github.com/enr/zipext)\n\n\nGo library to manipulate zip files.\n\nImport library:\n\n```Go\n    import (\n        \"github.com/enr/zipext\"\n    )\n```\n\nCreate a zip archive:\n\n```Go\n    contents := \"/path/to/files\"\n    zipPath := \"/path/to/archive.zip\"\n    err := zipext.Create(contents, zipPath)\n    if err != nil {\n        t.Errorf(\"error in Create(%s,%s): %s %s\", contents, zipPath, reflect.TypeOf(err), err.Error())\n    }\n```\n\nExtract contents from zip:\n\n```Go\n    err = zipext.Extract(zipPath, extractPath)\n    if err != nil {\n        t.Errorf(\"error in Extract(%s,%s): %s %s\", zipPath, unzipDir, reflect.TypeOf(err), err.Error())\n    }\n```\n\nVisit zip contents:\n\n```Go\n    err := zipext.Walk(path, func(f *zip.File, err error) error {\n        if err != nil {\n            return err\n        }\n        fmt.Printf(\"- %#v\\n\", f)\n        return nil\n    })\n```\n\nCheck if file is valid zip:\n\n```Go\n    p := \"/path/to/archive.zip\"\n    valid, err := zipext.IsValidZip(p)\n    if err != nil {\n        t.Errorf(\"got error checking for valid zip '%s'\", p)\n    }\n```\n\n## License\n\nApache 2.0 - see LICENSE file.\n\nCopyright 2014-TODAY zipext contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenr%2Fzipext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenr%2Fzipext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenr%2Fzipext/lists"}