{"id":21690942,"url":"https://github.com/reiver/go-raft","last_synced_at":"2025-03-20T12:58:49.077Z","repository":{"id":218736133,"uuid":"747216159","full_name":"reiver/go-raft","owner":"reiver","description":"Package raft provides tools for reading and writing RAFT files, for the Go programming language.","archived":false,"fork":false,"pushed_at":"2024-09-30T16:59:48.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T13:08:42.909Z","etag":null,"topics":["archive-format","container-format","raft-format"],"latest_commit_sha":null,"homepage":"","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/reiver.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}},"created_at":"2024-01-23T13:56:30.000Z","updated_at":"2024-10-03T23:52:18.000Z","dependencies_parsed_at":"2024-01-23T15:29:30.032Z","dependency_job_id":"3b8a0de3-baaf-4ecc-93f0-ee32ee80e77c","html_url":"https://github.com/reiver/go-raft","commit_stats":null,"previous_names":["reiver/go-raft"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-raft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-raft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-raft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-raft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reiver","download_url":"https://codeload.github.com/reiver/go-raft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244618429,"owners_count":20482316,"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":["archive-format","container-format","raft-format"],"created_at":"2024-11-25T17:35:17.971Z","updated_at":"2025-03-20T12:58:49.055Z","avatar_url":"https://github.com/reiver.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-raft\n\nPackage **raft** provides tools for reading and writing [RAFT files](https://github.com/reiver/raft-format), for the Go programming language.\n\nThe **raft format** is a very simple and easy to understand **archive format** and **container format** that can combine multiple files into a single aggregate file.\n\n**Archive Formats** and **Container Formats** have many use-case:\n* backups,\n* eBooks,\n* file-systems,\n* image galleries,\n* journals,\n* music albums,\n* photo albums,\n* software packages,\n* website archives,\n* _etc_.\n\nBasically, any use-case where you need to combine multiple files into a single aggregate file.\n\nThe **raft format** is similar to other **archive formats**, such as the  **ar format**, the **cpio format**, the **shar format**, the **tar format**, and the **WARC format** — but is designed to be easier to understand and implement than most (probably all) of the other **archive formats** and **container formats**.\n\nThe **raft format** is meant to be both programmer-legible and programmer-friendly.\n\nFor more information on the **raft format** see: https://github.com/reiver/raft-format\n\n## Documention\n\nOnline documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-raft\n\n[![GoDoc](https://godoc.org/github.com/reiver/go-raft?status.svg)](https://godoc.org/github.com/reiver/go-raft)\n\n## Examples\n\nHere is an example of writing a **raft** file:\n\n```go\nimport \"github.com/reiver/go-raft\"\n\n// ...\n\nraftfile, err := raft.CreateFileWriter(filename)\nif nil != er {\n\treturn err\n}\ndefer raftfile.Close()\n\nerr := raftfile.EmbedFromFile(file)\nif nil != err{\n\treturn err\n}\n\nerr := raftfile.EmbedFromFile(file1)\nif nil != err{\n\treturn err\n}\n\nerr := raftfile.EmbedFromFile(file2)\nif nil != err{\n\treturn err\n}\n\nerr := raftfile.EmbedFromFileRenamed(\"newname.jpeg\", file2)\nif nil != err{\n\treturn err\n}\n\nerr := raftfile.EmbedFromString(\"something.txt\", \"Hello world!\\n\\nHow are you?\\n\")\nif nil != err{\n\treturn err\n}\n\nerr := raftfile.EmbedFromBytes(\"something.txt\", []byte{'H','i','!','\\n'})\nif nil != err{\n\treturn err\n}\n```\n\n## Import\n\nTo import package **raft** use `import` code like the follownig:\n```\nimport \"github.com/reiver/go-raft\"\n```\n\n## Installation\n\nTo install package **raft** do the following:\n```\nGOPROXY=direct go get github.com/reiver/go-raft\n```\n\n## Author\n\nPackage **raft** was written by [Charles Iliya Krempeaux](http://reiver.link)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freiver%2Fgo-raft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freiver%2Fgo-raft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freiver%2Fgo-raft/lists"}