{"id":16766216,"url":"https://github.com/le-michael/simple","last_synced_at":"2025-03-16T12:16:16.006Z","repository":{"id":68675586,"uuid":"143218353","full_name":"le-michael/simple","owner":"le-michael","description":"A compilation of simple data-structures written in go","archived":false,"fork":false,"pushed_at":"2018-08-23T03:23:24.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T00:12:15.222Z","etag":null,"topics":["data-structures","go","golang"],"latest_commit_sha":null,"homepage":null,"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/le-michael.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,"publiccode":null,"codemeta":null}},"created_at":"2018-08-01T23:29:07.000Z","updated_at":"2020-01-20T16:12:02.000Z","dependencies_parsed_at":"2023-03-11T04:08:33.835Z","dependency_job_id":null,"html_url":"https://github.com/le-michael/simple","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/le-michael%2Fsimple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le-michael%2Fsimple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le-michael%2Fsimple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le-michael%2Fsimple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/le-michael","download_url":"https://codeload.github.com/le-michael/simple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864825,"owners_count":20360360,"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","go","golang"],"created_at":"2024-10-13T06:05:44.917Z","updated_at":"2025-03-16T12:16:16.000Z","avatar_url":"https://github.com/le-michael.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/le-michael/simple)](https://goreportcard.com/report/github.com/le-michael/simple) [![Build Status](https://travis-ci.org/le-michael/simple.svg?branch=master)](https://travis-ci.org/le-michael/simple) [![Coverage Status](https://coveralls.io/repos/github/le-michael/simple/badge.svg?branch=master)](https://coveralls.io/github/le-michael/simple?branch=master)\n\n\n# simple\nA compilation of simple data-structures written in go\n\n## Why?\nGolang is a great language but it's missing some basic data structures. I made this package so I won't have to have to reimplement all these data structures.\n\nThe code is also simple to read for anyone trying to get themselves familiar with Go. \n## Usage\n\n### Stack \n\u003cdetails\u003e\n    \n\u003csummary\u003eExample\u003c/summary\u003e\n\u003cbr\u003e\n\n```Go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/le-michael/simple\"\n)\n\nfunc main() {\n    stack := simple.NewStack()\n\n    for i := 0; i \u003c 10; i++ {\n        stack.Push(i)\n    }\n\n    for !stack.Empty() {\n        fmt.Println(stack.Top())\n        stack.Pop()\n    }\n    // 9 8 7 6 5 4 3 2 1 0\n}\n```\n\u003c/details\u003e\n\n### Queue \n\u003cdetails\u003e\n    \n\u003csummary\u003eExample\u003c/summary\u003e\n\u003cbr\u003e\n    \n```Go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/le-michael/simple\"\n)\n\nfunc main() {\n    queue := simple.NewQueue()\n\n    for i := 0; i \u003c 10; i++ {\n        queue.Push(i)\n    }\n\n    for !queue.Empty() {\n        fmt.Println(queue.Front())\n        queue.Pop()\n    }\n    // 0 1 2 3 4 5 6 7 8 9\n}\n```\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle-michael%2Fsimple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fle-michael%2Fsimple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle-michael%2Fsimple/lists"}