{"id":13571241,"url":"https://github.com/armon/circbuf","last_synced_at":"2025-05-15T23:05:08.858Z","repository":{"id":16539729,"uuid":"19293226","full_name":"armon/circbuf","owner":"armon","description":"Golang circular (ring) buffer","archived":false,"fork":false,"pushed_at":"2022-11-17T20:57:00.000Z","size":5,"stargazers_count":174,"open_issues_count":2,"forks_count":25,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-13T13:18:34.059Z","etag":null,"topics":[],"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/armon.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":"2014-04-29T22:17:39.000Z","updated_at":"2025-02-10T16:28:23.000Z","dependencies_parsed_at":"2023-01-13T18:53:41.526Z","dependency_job_id":null,"html_url":"https://github.com/armon/circbuf","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/armon%2Fcircbuf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armon%2Fcircbuf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armon%2Fcircbuf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armon%2Fcircbuf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armon","download_url":"https://codeload.github.com/armon/circbuf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254041801,"owners_count":22004773,"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":[],"created_at":"2024-08-01T14:01:00.129Z","updated_at":"2025-05-15T23:05:08.412Z","avatar_url":"https://github.com/armon.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"circbuf\n=======\n\nThis repository provides the `circbuf` package. This provides a `Buffer` object\nwhich is a circular (or ring) buffer. It has a fixed size, but can be written\nto infinitely. Only the last `size` bytes are ever retained. The buffer implements\nthe `io.Writer` interface.\n\nDocumentation\n=============\n\nFull documentation can be found on [Godoc](http://godoc.org/github.com/armon/circbuf)\n\nUsage\n=====\n\nThe `circbuf` package is very easy to use:\n\n```go\nbuf, _ := NewBuffer(6)\nbuf.Write([]byte(\"hello world\"))\n\nif string(buf.Bytes()) != \" world\" {\n    panic(\"should only have last 6 bytes!\")\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmon%2Fcircbuf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmon%2Fcircbuf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmon%2Fcircbuf/lists"}