{"id":16296870,"url":"https://github.com/windomz/sharding","last_synced_at":"2025-07-07T13:34:08.817Z","repository":{"id":83794846,"uuid":"139674517","full_name":"WindomZ/sharding","owner":"WindomZ","description":"Simple sharding tables fo Go.","archived":false,"fork":false,"pushed_at":"2018-08-03T01:52:03.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:40:41.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WindomZ.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-04T05:52:58.000Z","updated_at":"2018-08-03T01:52:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"c586dbfd-8219-4d38-8da9-54203fa1d70e","html_url":"https://github.com/WindomZ/sharding","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/WindomZ%2Fsharding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fsharding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fsharding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fsharding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindomZ","download_url":"https://codeload.github.com/WindomZ/sharding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248049153,"owners_count":21039162,"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":[],"created_at":"2024-10-10T20:24:16.728Z","updated_at":"2025-04-09T13:31:23.930Z","avatar_url":"https://github.com/WindomZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sharding\n\n\u003e Simple sharding tables fo Go.\n\n[![Build Status](https://travis-ci.org/WindomZ/sharding.svg?branch=master)](https://travis-ci.org/WindomZ/sharding)\n[![codecov](https://codecov.io/gh/WindomZ/sharding/branch/master/graph/badge.svg)](https://codecov.io/gh/WindomZ/sharding)\n\n## Install\n\n```bash\ngo get -u github.com/WindomZ/sharding\n```\n\n## Usage\n\nHash(crc32):\n\n```go\nshard := sharding.NewHashShard(\"_\", 0, 64)  // create hash formatter\nfmt.Println(shard.Format(\"hello\", \"world\")) // hello_3\n```\n\nTime:\n\n```go\nshard := sharding.NewTimeShard(\"_\", \"20060102\") // create time formatter\nfmt.Println(shard..Format(\"hello\"))             // hello_20180705\n```\n\n## Contributing\n\nWelcome to pull requests, report bugs, suggest ideas and discuss, \ni would love to hear what you think on [issues page](https://github.com/WindomZ/sharding/issues).\n\nIf you like it then you can put a :star: on it.\n\n## License\n\n[MIT](https://github.com/WindomZ/sharding/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fsharding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindomz%2Fsharding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fsharding/lists"}