{"id":38630596,"url":"https://github.com/wujie1993/go-ipset","last_synced_at":"2026-01-17T09:00:48.336Z","repository":{"id":57481566,"uuid":"189172498","full_name":"wujie1993/go-ipset","owner":"wujie1993","description":"a golang wrapper of ipset","archived":false,"fork":false,"pushed_at":"2021-10-08T02:26:49.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T12:29:36.208Z","etag":null,"topics":["go","golang","ipset"],"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/wujie1993.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-05-29T07:23:16.000Z","updated_at":"2022-09-13T11:46:43.000Z","dependencies_parsed_at":"2022-09-26T17:50:33.740Z","dependency_job_id":null,"html_url":"https://github.com/wujie1993/go-ipset","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wujie1993/go-ipset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujie1993%2Fgo-ipset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujie1993%2Fgo-ipset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujie1993%2Fgo-ipset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujie1993%2Fgo-ipset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wujie1993","download_url":"https://codeload.github.com/wujie1993/go-ipset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujie1993%2Fgo-ipset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["go","golang","ipset"],"created_at":"2026-01-17T09:00:28.234Z","updated_at":"2026-01-17T09:00:48.075Z","avatar_url":"https://github.com/wujie1993.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-ipset\n\n[![GoDoc](https://godoc.org/github.com/wujie1993/go-ipset?status.svg)](https://godoc.org/github.com/wujie1993/go-ipset)\n[![Go Report Card](https://goreportcard.com/badge/github.com/wujie1993/go-ipset)](https://goreportcard.com/report/github.com/wujie1993/go-ipset)\n[![CircleCI](https://circleci.com/gh/wujie1993/go-ipset.svg?style=svg)](https://circleci.com/gh/wujie1993/go-ipset)\n\n## Example\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/wujie1993/go-ipset\"\n)\n\nfunc main() {\n\tvar setName string = \"test_set\"\n\tvar setEntry string = \"192.168.1.0/24\"\n\n\t// Create a ipset by set name and set type\n\tif err := ipset.CreateSet(setName, \"hash:net\"); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\t// Get a ipset by set name\n\tipSet, err := ipset.GetSet(setName)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tfmt.Printf(\"%+v\", ipSet)\n\n\t// List all ipset\n\tipSets, err := ipset.ListSet()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tfmt.Printf(\"%+v\", ipSets)\n\n\t// Add a entry in ipset\n\tif err := ipset.AddEntry(setName, setEntry); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\t// Delete a entry in ipset\n\tif err := ipset.DelEntry(setName, setEntry); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\t// Destroy a ipset\n\tif err := ipset.DestroySet(setName); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n}\n```\n\nFor more usages, please reading [godoc](https://godoc.org/github.com/wujie1993/go-ipset) or [ipset_test.go](./ipset_test.go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwujie1993%2Fgo-ipset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwujie1993%2Fgo-ipset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwujie1993%2Fgo-ipset/lists"}