{"id":18446587,"url":"https://github.com/cristalhq/base64","last_synced_at":"2025-04-05T08:07:22.854Z","repository":{"id":45514327,"uuid":"396251388","full_name":"cristalhq/base64","owner":"cristalhq","description":"Faster base64 encoding for Go","archived":false,"fork":false,"pushed_at":"2023-02-25T09:40:08.000Z","size":64,"stargazers_count":181,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T07:07:02.479Z","etag":null,"topics":["base64","base64-decoding","base64-encoding","codec","decoder","decoding","encoder","encoding","go","golang"],"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/cristalhq.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":"2021-08-15T06:57:09.000Z","updated_at":"2025-02-21T09:10:18.000Z","dependencies_parsed_at":"2024-06-18T15:17:07.983Z","dependency_job_id":"13cd81a0-2c91-4f70-8633-de59886cf4fa","html_url":"https://github.com/cristalhq/base64","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fbase64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fbase64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fbase64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fbase64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristalhq","download_url":"https://codeload.github.com/cristalhq/base64/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305934,"owners_count":20917208,"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":["base64","base64-decoding","base64-encoding","codec","decoder","decoding","encoder","encoding","go","golang"],"created_at":"2024-11-06T07:09:45.138Z","updated_at":"2025-04-05T08:07:22.830Z","avatar_url":"https://github.com/cristalhq.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# base64\n\n[![build-img]][build-url]\n[![pkg-img]][pkg-url]\n[![reportcard-img]][reportcard-url]\n[![coverage-img]][coverage-url]\n\nFaster base64 encoding for Go, based on [Turbo-Base64](https://github.com/powturbo/Turbo-Base64).\n\n## Features\n\n* Drop-in replacement of `encoding/base64`.\n  * _except for error messages and ignoring `\\r` and `\\n` in decoder._\n* up to 3 times faster than `encoding/base64`.\n* Dependency-free.\n\n## Install\n\nGo version 1.16+\n\n```\ngo get github.com/cristalhq/base64\n```\n\n## How to use\n\nReplace import statement from `encoding/base64` to `github.com/cristalhq/base64`\n\n```diff\n-import \"encoding/base64\"\n+import \"github.com/cristalhq/base64\"\n```\n\n# Benchmarks\n\ngo1.17 linux/amd64, Intel i7-7700\n\n```\nstd/Encode           685.3 ns/op      0 B/op   0 allocs/op\nstd/EncodeToString   951.8 ns/op   2048 B/op   2 allocs/op\nstd/Decode           803.9 ns/op      0 B/op   0 allocs/op\nstd/DecodeString     1061 ns/op    1792 B/op   2 allocs/op\n\nown/Encode           217.8 ns/op      0 B/op   0 allocs/op\nown/EncodeToString   353.2 ns/op   1024 B/op   1 allocs/op\nown/Decode           426.0 ns/op      0 B/op   0 allocs/op\nown/DecodeString     598.7 ns/op    768 B/op   1 allocs/op\n```\n\ngo1.17 darwin/arm64, Apple M1\n\n```\nstd/Encode           413.0 ns/op       0 B/op  0 allocs/op\nstd/EncodeToString   608.3 ns/op    2048 B/op  2 allocs/op\nstd/Decode           372.5 ns/op       0 B/op  0 allocs/op\nstd/DecodeString     570.2 ns/op    1792 B/op  2 allocs/op\n\nown/Encode           146.7 ns/op       0 B/op  0 allocs/op\nown/EncodeToString   246.4 ns/op    1024 B/op  1 allocs/op\nown/Decode           222.8 ns/op       0 B/op  0 allocs/op\nown/DecodeString     303.1 ns/op     768 B/op  1 allocs/op\n```\n\n# [Fuzzing](fuzz)\n\n## Documentation\n\nSee [these docs][pkg-url].\n\n## License\n\n[MIT License](LICENSE).\n\n[build-img]: https://github.com/cristalhq/base64/workflows/build/badge.svg\n[build-url]: https://github.com/cristalhq/base64/actions\n[pkg-img]: https://pkg.go.dev/badge/cristalhq/base64\n[pkg-url]: https://pkg.go.dev/github.com/cristalhq/base64\n[reportcard-img]: https://goreportcard.com/badge/cristalhq/base64\n[reportcard-url]: https://goreportcard.com/report/cristalhq/base64\n[coverage-img]: https://codecov.io/gh/cristalhq/base64/branch/master/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/cristalhq/base64\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristalhq%2Fbase64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristalhq%2Fbase64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristalhq%2Fbase64/lists"}