{"id":16163742,"url":"https://github.com/sug0/go-seq","last_synced_at":"2025-04-07T04:44:39.641Z","repository":{"id":57509024,"uuid":"140908505","full_name":"sug0/go-seq","owner":"sug0","description":"Generate alphabetical sequential IDs","archived":false,"fork":false,"pushed_at":"2020-11-23T05:46:18.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T08:54:11.863Z","etag":null,"topics":["alphabetical","generator","go","golang","id","sequential"],"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/sug0.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":"2018-07-14T02:08:18.000Z","updated_at":"2020-11-23T05:46:20.000Z","dependencies_parsed_at":"2022-08-30T05:41:41.841Z","dependency_job_id":null,"html_url":"https://github.com/sug0/go-seq","commit_stats":null,"previous_names":["sugoiuguu/go-seq"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sug0%2Fgo-seq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sug0%2Fgo-seq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sug0%2Fgo-seq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sug0%2Fgo-seq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sug0","download_url":"https://codeload.github.com/sug0/go-seq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595374,"owners_count":20963942,"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":["alphabetical","generator","go","golang","id","sequential"],"created_at":"2024-10-10T02:44:18.893Z","updated_at":"2025-04-07T04:44:39.620Z","avatar_url":"https://github.com/sug0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-seq\n\nPainless alphabetical sequential IDs.\n\n# Documentation\n\nVisit [godoc](https://godoc.org/github.com/sugoiuguu/go-seq).\n\n# Get this package\n\n```\n$ go get github.com/sugoiuguu/go-seq\n```\n\n# Example\n\n## New\n\n```go\n// create a new sequence\nseq := sequence.NewSeq()\n\nfmt.Printf(\"%q\\n\", seq.Next())\n```\n\n## Encode\n\n```go\n// create a new sequence\nseq := sequence.NewSeq()\n\n// create a new encoder that outputs to stdout\ndec := json.NewEncoder(os.Stdout)\n\nif err := enc.Encode(seq); err != nil {\n    panic(err)\n}\n```\n\n## Decode\n\n```go\n// the sequence we'll initialize\nvar seq sequence.Seq\n\n// create a new decoder that reads from stdin\ndec := json.NewDecoder(os.Stdin)\n\nif err := dec.Decode(\u0026seq); err != nil {\n    panic(err)\n}\n\nfmt.Printf(\"%q\\n\", seq.Next())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsug0%2Fgo-seq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsug0%2Fgo-seq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsug0%2Fgo-seq/lists"}