{"id":18673148,"url":"https://github.com/vicanso/ips","last_synced_at":"2025-11-06T23:30:26.544Z","repository":{"id":57493878,"uuid":"200235037","full_name":"vicanso/ips","owner":"vicanso","description":"Check ip is exists in iplist","archived":false,"fork":false,"pushed_at":"2021-03-20T05:10:40.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T19:44:58.186Z","etag":null,"topics":["ip","ips"],"latest_commit_sha":null,"homepage":null,"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/vicanso.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-08-02T12:58:13.000Z","updated_at":"2022-03-25T08:24:16.000Z","dependencies_parsed_at":"2022-08-30T07:12:51.554Z","dependency_job_id":null,"html_url":"https://github.com/vicanso/ips","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicanso%2Fips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicanso%2Fips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicanso%2Fips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicanso%2Fips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicanso","download_url":"https://codeload.github.com/vicanso/ips/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239513379,"owners_count":19651322,"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":["ip","ips"],"created_at":"2024-11-07T09:14:06.049Z","updated_at":"2025-11-06T23:30:26.514Z","avatar_url":"https://github.com/vicanso.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ips\n\n[![Build Status](https://github.com/vicanso/ips/workflows/Test/badge.svg)](https://github.com/vicanso/ips/actions)\n\nCheck ip is exists in iplist.\n\n## API\n\n```go\nips := ips.NewWithoutMutex()\nips.Add(\"12.12.12.12\", \"12.12.12.13\", \"192.168.1.1/24\")\nfmt.Println(ips.Contains(\"192.168.1.1\"))\nips.Replace(\"1.1.1.1\")\nips.Reset()\n```\n\nIf you need to change the ip anytime, you shuuld add `mutex`.\n\n```go\nips := ips.New()\nips.Add(\"12.12.12.12\")\nips.Add(\"12.12.12.13\")\nips.Add(\"192.168.1.1/24\")\nfmt.Println(ips.Contains(\"192.168.1.1\"))\nips.Replace(\"1.1.1.1\")\nips.Reset()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicanso%2Fips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicanso%2Fips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicanso%2Fips/lists"}