{"id":20976197,"url":"https://github.com/realtristan/goqueue","last_synced_at":"2025-05-14T14:31:19.847Z","repository":{"id":54649735,"uuid":"522567057","full_name":"realTristan/goqueue","owner":"realTristan","description":"Flexible Queue System for Go","archived":false,"fork":false,"pushed_at":"2023-04-12T20:03:59.000Z","size":81,"stargazers_count":39,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T06:03:30.569Z","etag":null,"topics":["easy-to-use","flexible","go","golang","open-source","queue","thread-safe"],"latest_commit_sha":null,"homepage":"https://realtristan.github.io/goqueue/","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/realTristan.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":"2022-08-08T13:46:05.000Z","updated_at":"2024-05-30T16:42:52.000Z","dependencies_parsed_at":"2024-06-19T04:08:22.771Z","dependency_job_id":"4548324c-bd7a-446c-8d01-c8f8df9481ff","html_url":"https://github.com/realTristan/goqueue","commit_stats":{"total_commits":83,"total_committers":2,"mean_commits":41.5,"dds":0.3975903614457831,"last_synced_commit":"05055b9e661cecb3e52310bd2fe03ceb27c0f14d"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realTristan%2Fgoqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realTristan%2Fgoqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realTristan%2Fgoqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realTristan%2Fgoqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realTristan","download_url":"https://codeload.github.com/realTristan/goqueue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225297823,"owners_count":17452010,"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":["easy-to-use","flexible","go","golang","open-source","queue","thread-safe"],"created_at":"2024-11-19T04:51:23.373Z","updated_at":"2024-11-19T04:51:23.919Z","avatar_url":"https://github.com/realTristan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# GoQueue ![Stars](https://img.shields.io/github/stars/realTristan/goqueue?color=brightgreen) ![Watchers](https://img.shields.io/github/watchers/realTristan/goqueue?label=Watchers)\n\n![Go Queue Banner](https://user-images.githubusercontent.com/75189508/183435878-e5669071-df93-478a-a364-245862dadddb.png)\n\nFlexible Queue System for Go.\n\n# Why GoQueue?\nGoQueue is a light weight, easy to read open source module that uses solely native golang code. GoQueue's functions are based off of the python queue library so the learning curve is not as time consuming. \n\n# Installation\n```\ngo get -u github.com/realTristan/goqueue\n```\n\n\n# Quick Usage\n```go\npackage main\n\nimport (\n\t\"github.com/realTristan/goqueue\"\n)\n\nfunc main() {\n\t// Create a new queue\n\tqueue := goqueue.Create()\n\t\n\t// Put item into the queue\n\tqueue.Put(\"Item\")\n\t\n\t// Get the item from the queue\n\titem := queue.Get()\n\t\n\t// Print the item\n\tprintln(*item)\n\t\n\t// Output -\u003e \"Item\"\n}\n```\n\n# GoQueue Functions\n```go\n\n// Create() -\u003e *ItemQueue\n// The Create() function will return an empty ItemQueue\nfunc Create() *ItemQueue {}\n\n// q.Index(index integer) -\u003e *Item\n// The RemoveAtIndex() function is used to remove an item at the provided index of the ItemQueue\n// The function will then return the removed item if the user requires it's use\nfunc (q *ItemQueue) RemoveAtIndex(i int) *Item {}\n\n// q.Contains(Item) -\u003e None\n// The Contains() function will scheck whether the provided ItemQueue contains\n//\t  the given Item (_item)\nfunc (q *ItemQueue) Contains(item Item) bool {}\n\n// q.Remove(Item) -\u003e None\n// The Remove() function will secure the ItemQueue before iterating\n//\t  through said ItemQueue and remove the given Item (_item)\nfunc (q *ItemQueue) Remove(item Item) {}\n\n// q.Put(Item) -\u003e None\n// The Put() function is used to add a new item to the provided ItemQueue\nfunc (q *ItemQueue) Put(i Item) {}\n\n// q.Get() -\u003e Item\n// The Get() function will append the first item of the ItemQueue to the back of the slice\n//    then remove it from the front\n// The function returns the first item of the ItemQueue\nfunc (q *ItemQueue) Get() *Item {}\n\n// q.Grab() -\u003e Item\n// The Grab() function will return the first item of the ItemQueue then\n//    remove it from said ItemQueue\nfunc (q *ItemQueue) Grab() *Item {}\n\n// q.Clear() -\u003e None\n// The Clear() function will secure the queue then remove all of its items\nfunc (q *ItemQueue) Clear() {}\n\n// q.Show() -\u003e *[]Item\n// The Show() function will return the ItemQueue's items\nfunc (q *ItemQueue) Show() *[]Item {}\n\n// q.GetAtIndex(index integer) -\u003e *Item\n// The GetAtIndex() function is used to return an item at the provided index of the ItemQueue\nfunc (q *ItemQueue) GetAtIndex(i int) *Item {}\n\n// q.IsEmpty() -\u003e bool\n// The IsEmpty() function will return whether the provided ItemQueue contains any Items\nfunc (q *ItemQueue) IsEmpty() bool {}\n\n// q.IsNotEmpty() -\u003e bool\n// The IsNotEmpty() function will return whether the provided ItemQueue contains any Items\nfunc (q *ItemQueue) IsNotEmpty() bool {}\n\n// q.Size() -\u003e int\n// The Size() function will return the length of the ItemQueue slice\nfunc (q *ItemQueue) Size() int {}\n\n```\n\n# License\nMIT License\n\nCopyright (c) 2022 Tristan Simpson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealtristan%2Fgoqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealtristan%2Fgoqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealtristan%2Fgoqueue/lists"}