{"id":15736098,"url":"https://github.com/rwxrob/structs","last_synced_at":"2025-07-24T19:07:42.301Z","repository":{"id":42121924,"uuid":"466662145","full_name":"rwxrob/structs","owner":"rwxrob","description":"Data Structs with Go (1.18) Generics","archived":false,"fork":false,"pushed_at":"2022-04-14T10:37:40.000Z","size":118,"stargazers_count":3,"open_issues_count":11,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-26T00:03:57.303Z","etag":null,"topics":["data-structures","generics","golang","graph-structures","node","stack","tree-structure"],"latest_commit_sha":null,"homepage":"","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/rwxrob.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"rwxrob","patreon":"rwxrob","custom":["https://twitch.tv/rwxrob","https://youtube.com/rwxrob"]}},"created_at":"2022-03-06T07:02:01.000Z","updated_at":"2022-04-12T18:31:53.000Z","dependencies_parsed_at":"2022-08-12T07:11:00.795Z","dependency_job_id":null,"html_url":"https://github.com/rwxrob/structs","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxrob%2Fstructs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxrob%2Fstructs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxrob%2Fstructs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxrob%2Fstructs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwxrob","download_url":"https://codeload.github.com/rwxrob/structs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222483253,"owners_count":16991557,"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":["data-structures","generics","golang","graph-structures","node","stack","tree-structure"],"created_at":"2024-10-04T01:21:00.490Z","updated_at":"2024-11-02T15:07:32.532Z","avatar_url":"https://github.com/rwxrob.png","language":"Go","readme":"# Data Structs with Go (1.18+) Generics\n\n[![Go\nVersion](https://img.shields.io/github/go-mod/go-version/rwxrob/structs)](https://tip.golang.org/doc/go1.18)\n[![GoDoc](https://godoc.org/github.com/rwxrob/structs?status.svg)](https://godoc.org/github.com/rwxrob/structs)\n[![License](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](LICENSE)\n[![Go Report\nCard](https://goreportcard.com/badge/github.com/rwxrob/structs)](https://goreportcard.com/report/github.com/rwxrob/structs)\n\n*Go report card has no idea how to handle Go 1.18.* 😀\n\n* [Types Map](types)\n* [QStack](qstack)\n* [Rooted Node Tree](tree)\n* [Text Sets](set/text/set)\n\nAll structures make judicious use of generics and implement the same\njson.AsJSON interface (and others) making them much more consumable and\nshareable.\n\n## Design Decisions\n\n* **Why no linked-list or queue?** Because they are fulfilled by QStack\n  and Node.\n\n* **Decided to drop async walks of Node.** It's easily accomplished by\n  enclosing whatever channel is needed in the iterator function and\n  forking a goroutine off from within it.\n\n* **Don't stutter.** `tree.Tree` was changed to `tree.E` and\n  `qstack.QStack` was changed to `qstack.QS` to follow the idiomatic\n  \"don't stutter\" design preferred by core Go libraries like\n  `testing.T`. (We don't want to be another `context.Context`.) \n\n## TODO\n\n* Add equivalent methods to Node from JavaScript (InsertAfter, etc.)\n* Add Union and other set methods\n","funding_links":["https://github.com/sponsors/rwxrob","https://patreon.com/rwxrob","https://twitch.tv/rwxrob","https://youtube.com/rwxrob"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwxrob%2Fstructs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwxrob%2Fstructs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwxrob%2Fstructs/lists"}