{"id":24841720,"url":"https://github.com/vedhavyas/queue","last_synced_at":"2025-03-26T06:13:12.058Z","repository":{"id":57481887,"uuid":"99475819","full_name":"vedhavyas/queue","owner":"vedhavyas","description":"Queue FIFO implementation in Go","archived":false,"fork":false,"pushed_at":"2017-09-10T05:33:14.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T07:33:04.981Z","etag":null,"topics":["fifo","go","queue"],"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/vedhavyas.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":"2017-08-06T09:12:31.000Z","updated_at":"2019-02-27T06:34:16.000Z","dependencies_parsed_at":"2022-09-02T06:04:20.133Z","dependency_job_id":null,"html_url":"https://github.com/vedhavyas/queue","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedhavyas%2Fqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedhavyas%2Fqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedhavyas%2Fqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedhavyas%2Fqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vedhavyas","download_url":"https://codeload.github.com/vedhavyas/queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245598316,"owners_count":20641884,"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":["fifo","go","queue"],"created_at":"2025-01-31T07:28:33.598Z","updated_at":"2025-03-26T06:13:12.040Z","avatar_url":"https://github.com/vedhavyas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# queue\n--\n    import \"github.com/vedhavyas/queue\"\n\n\n## Usage\n\n#### type Queue\n\n```go\ntype Queue struct {}\n```\n\nQueue represents the FIFO list of items\n\n#### func (*Queue) Dequeue\n\n```go\nfunc (q *Queue) Dequeue() (interface{}, error)\n```\nDequeue returns the first item from queue: O(1)\n\nReturns an error if queue empty/out of bounds\n\n#### func (*Queue) Enqueue\n\n```go\nfunc (q *Queue) Enqueue(item interface{})\n```\nEnqueue add the item to the queue: O(1)\n\n#### func (*Queue) Get\n\n```go\nfunc (q *Queue) Get(i int) (interface{}, error)\n```\nGet returns the item at the given index from the list: O(n)\n\nReturns an error if queue empty/out of bounds\n\n#### func (*Queue) Len\n\n```go\nfunc (q *Queue) Len() int\n```\nLen returns the items count in the queue\n\n#### func (*Queue) Peak\n\n```go\nfunc (q *Queue) Peak() (interface{}, error)\n```\nPeak returns the next value in queue but does not remove from queue: O(1)\n\nReturns error if queue empty\n\n#### func (*Queue) PeakAt\n\n```go\nfunc (q *Queue) PeakAt(i int) (interface{}, error)\n```\nPeakAt returns the item at the index i from the queue: O(n)\n\nReturns error if queue empty/out of bounds\n\n#### func (*Queue) String\n\n```go\nfunc (q *Queue) String() string\n```\nString dumps the queue in human readable format: O(n)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedhavyas%2Fqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvedhavyas%2Fqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedhavyas%2Fqueue/lists"}