{"id":18251836,"url":"https://github.com/achiku/hseq","last_synced_at":"2025-04-08T20:46:59.519Z","repository":{"id":57496255,"uuid":"82378510","full_name":"achiku/hseq","owner":"achiku","description":"Generate hash + sequence for tests","archived":false,"fork":false,"pushed_at":"2024-04-03T06:03:31.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T16:39:54.156Z","etag":null,"topics":["golang","testing"],"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/achiku.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-02-18T10:16:48.000Z","updated_at":"2024-03-27T02:36:03.000Z","dependencies_parsed_at":"2024-04-03T07:23:56.674Z","dependency_job_id":null,"html_url":"https://github.com/achiku/hseq","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/achiku%2Fhseq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achiku%2Fhseq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achiku%2Fhseq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achiku%2Fhseq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/achiku","download_url":"https://codeload.github.com/achiku/hseq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247927153,"owners_count":21019505,"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":["golang","testing"],"created_at":"2024-11-05T09:48:35.438Z","updated_at":"2025-04-08T20:46:59.497Z","avatar_url":"https://github.com/achiku.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hseq\n\n[![Build Status](https://travis-ci.org/achiku/hseq.svg?branch=master)](https://travis-ci.org/achiku/hseq)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/achiku/hseq/master/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/achiku/hseq)](https://goreportcard.com/report/github.com/achiku/hseq)\n\nSimply generating sequence values for tests\n\n\n## Why created\n\nIn tests, it is very helpful to have unique sequence values for a name, especially when it interact with RDBMS primary key or unique constraints. This library makes it easier to set up unique sequence values in Go tests.\n\n\n## Installation\n\n```\ngo get -u github.com/achiku/hseq\n```\n\n## How to use\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/achiku/hseq\"\n)\n\ntype st struct {\n\tID           int64\n\tUniqueNumber int\n\tUniqueName   string\n}\n\nfunc main() {\n\tst1 := st{\n\t\tID:           hseq.Get(\"st.id\").Int64(),\n\t\tUniqueNumber: hseq.Get(\"st.unique_number\").Int(),\n\t\tUniqueName:   hseq.Get(\"st.unique_name\").String(),\n\t}\n\tst2 := st{\n\t\tID:           hseq.Get(\"st.id\").Int64(),\n\t\tUniqueNumber: hseq.Get(\"st.unique_number\").Int(),\n\t\tUniqueName:   hseq.Get(\"st.unique_name\").String(),\n\t}\n\tlog.Printf(\"%+v\", st1)\n\tlog.Printf(\"%+v\", st2)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachiku%2Fhseq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachiku%2Fhseq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachiku%2Fhseq/lists"}