{"id":29170207,"url":"https://github.com/manifoldco/go-base64","last_synced_at":"2026-04-27T17:33:17.946Z","repository":{"id":57492757,"uuid":"87093514","full_name":"manifoldco/go-base64","owner":"manifoldco","description":"A raw base64 url encoding library for JSON","archived":false,"fork":false,"pushed_at":"2020-01-13T14:58:54.000Z","size":15,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-05-08T08:03:23.801Z","etag":null,"topics":["base64","go","golang","json"],"latest_commit_sha":null,"homepage":"https://www.manifold.co","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manifoldco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-03T16:04:14.000Z","updated_at":"2020-02-12T20:42:16.000Z","dependencies_parsed_at":"2022-08-28T13:41:38.603Z","dependency_job_id":null,"html_url":"https://github.com/manifoldco/go-base64","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/manifoldco/go-base64","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldco%2Fgo-base64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldco%2Fgo-base64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldco%2Fgo-base64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldco%2Fgo-base64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manifoldco","download_url":"https://codeload.github.com/manifoldco/go-base64/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldco%2Fgo-base64/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262964047,"owners_count":23391939,"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","go","golang","json"],"created_at":"2025-07-01T12:39:25.460Z","updated_at":"2026-04-27T17:33:12.922Z","avatar_url":"https://github.com/manifoldco.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-base64\n\nA raw base64 URL encoding library for JSON.\n\n[Code of Conduct](./.github/CONDUCT.md) |\n[Contribution Guidelines](./.github/CONTRIBUTING.md)\n\n[![GitHub release](https://img.shields.io/github/tag/manifoldco/go-base64.svg?label=latest)](https://github.com/manifoldco/go-base64/releases)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/manifoldco/go-base64)\n[![Travis](https://img.shields.io/travis/manifoldco/go-base64/master.svg)](https://travis-ci.org/manifoldco/go-base64)\n[![Go Report Card](https://goreportcard.com/badge/github.com/manifoldco/go-base64)](https://goreportcard.com/report/github.com/manifoldco/go-base64)\n[![License](https://img.shields.io/badge/license-BSD-blue.svg)](./LICENSE.md)\n\n## Usage\n\n`base64` Provides a convenient way to read and write raw (no padding) base64 URL\nvalues.\n\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/manifoldco/go-base64\"\n)\n\ntype Example struct {\n\tName        string        `json:\"name\"`\n\tData        *base64.Value `json:\"data\"`\n\tRegularData []byte        `json:\"regular\"`\n}\n\nfunc main() {\n\tsample := []byte{0xF, 0xEE, 0xD, 0xC, 0x0D}\n\te := \u0026Example{\n\t\tName:        \"test data\",\n\t\tData:        base64.New(sample),\n\t\tRegularData: sample,\n\t}\n\n\to, _ := json.MarshalIndent(e, \"\", \"  \")\n\tfmt.Println(string(o))\n}\n```\n\nOutputs:\n\n```\n{\n  \"name\": \"test data\",\n  \"data\": \"D-4NDA0\",\n  \"regular\": \"D+4NDA0=\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldco%2Fgo-base64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanifoldco%2Fgo-base64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldco%2Fgo-base64/lists"}