{"id":17270353,"url":"https://github.com/ilgooz/sadd","last_synced_at":"2025-03-26T12:13:36.516Z","repository":{"id":57598879,"uuid":"138925504","full_name":"ilgooz/sadd","owner":"ilgooz","description":"Parse multiple service addresses formatted in a special single string syntax.","archived":false,"fork":false,"pushed_at":"2018-06-27T20:24:51.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T13:22:27.548Z","etag":null,"topics":["address","go","golang","network","service","url"],"latest_commit_sha":null,"homepage":null,"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/ilgooz.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-27T19:40:59.000Z","updated_at":"2019-07-13T22:14:34.000Z","dependencies_parsed_at":"2022-08-29T23:52:29.943Z","dependency_job_id":null,"html_url":"https://github.com/ilgooz/sadd","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/ilgooz%2Fsadd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilgooz%2Fsadd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilgooz%2Fsadd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilgooz%2Fsadd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilgooz","download_url":"https://codeload.github.com/ilgooz/sadd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650484,"owners_count":20650105,"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":["address","go","golang","network","service","url"],"created_at":"2024-10-15T08:19:24.309Z","updated_at":"2025-03-26T12:13:36.498Z","avatar_url":"https://github.com/ilgooz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sadd [![GoDoc](https://godoc.org/github.com/ilgooz/sadd?status.svg)](https://godoc.org/github.com/ilgooz/sadd) [![Go Report Card](https://goreportcard.com/badge/github.com/ilgooz/sadd)](https://goreportcard.com/report/github.com/ilgooz/sadd) [![Build Status](https://travis-ci.org/ilgooz/sadd.svg?branch=master)](https://travis-ci.org/ilgooz/sadd)\n\nParse multiple service addresses formatted in a special single string syntax.\n\n```\ngo get gopkg.in/ilgooz/sadd.v1\n```\n\n### Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/ilgooz/sadd\"\n)\n\nfunc main() {\n\tquery := \":6379,:3000-:3003,localhost:3000-:3003,192.168.1.126:3000-:3003,192.168.1.254:3000-192.168.2.1:3001\"\n\taddresses, err := sadd.ParseQuery(query)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfor _, address := range addresses {\n\t\tfmt.Println(address)\n\t}\n\t// outputs:\n\t//  :6379\n\t//  :3000\n\t//  :3001\n\t//  :3002\n\t//  :3003\n\t//  localhost:3000\n\t//  localhost:3001\n\t//  localhost:3002\n\t//  localhost:3003\n\t//  192.168.1.126:3000\n\t//  192.168.1.126:3001\n\t//  192.168.1.126:3002\n\t//  192.168.1.126:3003\n\t//  192.168.1.254:3000\n\t//  192.168.1.254:3001\n\t//  192.168.1.255:3000\n\t//  192.168.1.255:3001\n\t//  192.168.2.0:3000\n\t//  192.168.2.0:3001\n\t//  192.168.2.1:3000\n\t//  192.168.2.1:3001\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filgooz%2Fsadd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filgooz%2Fsadd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filgooz%2Fsadd/lists"}