{"id":25842751,"url":"https://github.com/nir3x/compressor","last_synced_at":"2025-03-01T06:31:49.823Z","repository":{"id":217137773,"uuid":"743162790","full_name":"NIR3X/compressor","owner":"NIR3X","description":"Compressor - Simple Repeated Characters Compression Algorithm (Go Version)","archived":false,"fork":false,"pushed_at":"2024-02-16T04:12:45.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T20:08:17.880Z","etag":null,"topics":["algorithm","compression","compression-library","compression-package","data-compression","data-encoding","data-size","go","golang","reduction-algorithm","repeated-characters","sequence","symmetric-algorithm","varsizedint"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NIR3X.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}},"created_at":"2024-01-14T14:24:07.000Z","updated_at":"2024-01-18T13:24:42.000Z","dependencies_parsed_at":"2024-01-24T21:59:20.892Z","dependency_job_id":null,"html_url":"https://github.com/NIR3X/compressor","commit_stats":null,"previous_names":["nir3x/compressor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Fcompressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Fcompressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Fcompressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Fcompressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NIR3X","download_url":"https://codeload.github.com/NIR3X/compressor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241329448,"owners_count":19944982,"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":["algorithm","compression","compression-library","compression-package","data-compression","data-encoding","data-size","go","golang","reduction-algorithm","repeated-characters","sequence","symmetric-algorithm","varsizedint"],"created_at":"2025-03-01T06:31:33.894Z","updated_at":"2025-03-01T06:31:49.808Z","avatar_url":"https://github.com/NIR3X.png","language":"Go","readme":"# Compressor - Simple Repeated Characters Compression Algorithm (Go Version)\n\nThis Go package provides a Go implementation of a symmetric compression algorithm designed for sequences containing repeated characters. The algorithm aims to reduce the size of data by efficiently encoding repeated character chunks.\n\n## Installation\n\nTo use this package, you can import it into your Go project:\n\n```bash\ngo get -u github.com/NIR3X/compressor\n```\n\n## Usage\n\nHere is an example of how to use the Compressor package in your Go application:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/NIR3X/compressor\"\n)\n\nfunc main() {\n\t// Data to compress\n\tdata := []uint8(\"Hellooooooooooo, World!\")\n\n\t// Compress the data\n\tvar compressed []uint8\n\tcompressedSize := compressor.Compress(data, \u0026compressed)\n\n\t// Decompress the data\n\tdecompressed := make([]uint8, len(data))\n\tdecompressedSize := compressor.Decompress(compressed, decompressed)\n\n\t// Print original, compressed, and decompressed sizes\n\tfmt.Printf(\"Original Size: %d bytes\\n\", len(data))\n\tfmt.Printf(\"Compressed Size: %d bytes\\n\", compressedSize)\n\tfmt.Printf(\"Decompressed Size: %d bytes\\n\", decompressedSize)\n\n\t// Print original and decompressed data\n\tfmt.Printf(\"Original Data: %s\\n\", data)\n\tfmt.Printf(\"Decompressed Data: %s\\n\", string(decompressed))\n}\n```\n\nIn this example, the Compressor package compresses the input data, and then decompresses it, demonstrating the basic usage of the compression and decompression functionalities. Adjust the package integration as needed for your specific use case.\n\n## License\n\n[![GNU AGPLv3 Image](https://www.gnu.org/graphics/agplv3-155x51.png)](https://www.gnu.org/licenses/agpl-3.0.html)\n\nThis program is Free Software: You can use, study share and improve it at your\nwill. Specifically you can redistribute and/or modify it under the terms of the\n[GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html) as\npublished by the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnir3x%2Fcompressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnir3x%2Fcompressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnir3x%2Fcompressor/lists"}