{"id":37206857,"url":"https://github.com/webnice/b64","last_synced_at":"2026-01-14T23:48:20.868Z","repository":{"id":57519293,"uuid":"83825260","full_name":"webnice/b64","owner":"webnice","description":"Convert Int64 uint64 to 11 symbols string (base64 string) and back","archived":true,"fork":false,"pushed_at":"2017-03-03T18:20:26.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-15T13:43:52.244Z","etag":null,"topics":["example","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"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/webnice.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":"2017-03-03T17:47:32.000Z","updated_at":"2023-01-28T17:45:52.000Z","dependencies_parsed_at":"2022-09-06T03:42:34.513Z","dependency_job_id":null,"html_url":"https://github.com/webnice/b64","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/webnice/b64","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webnice%2Fb64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webnice%2Fb64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webnice%2Fb64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webnice%2Fb64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webnice","download_url":"https://codeload.github.com/webnice/b64/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webnice%2Fb64/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["example","golang"],"created_at":"2026-01-14T23:48:20.215Z","updated_at":"2026-01-14T23:48:20.850Z","avatar_url":"https://github.com/webnice.png","language":"Go","readme":"# b64\nGo library convert Int64 or Uint64 variable to string(11 symbols), and convert 11 symbols string back to int64 or uint64\n\n[![GoDoc](https://godoc.org/github.com/webnice/b64?status.png)](http://godoc.org/github.com/webnice/b64)\n\n### What is it?\nLibrary converts a single intenger to a string of 1 to 11 characters.\nConversion is to reduce number characters when writing a long string of numbers.\n\nExample: `1048575` (7 symbols) -\u003e `\"D___\"` (4 symbols)\n\nYes, it is a regular base64 for use in a URL, but it works faster than the standard library \"encoding/base64\"\nAnd it made a little more comfortable when using a conversion of only one number\n\n### How to use?\n\n######Convert from number to string\n\tpackage main\n\n\timport \"gopkg.in/webnice/b64.v1\"\n\n\tfunc main() {\n\t    o := b64.NewUint64(10485251)\n\t    print(o.String(), \"\\n\")\n    \tprint(o.Uint64(), \"\\n\")\n\t}\n\nResult:\n\n\tn_4D\n\t10485251\n--\n\n######Convert from string to number\n\n\tpackage main\n\n\timport \"gopkg.in/webnice/b64.v1\"\n\n\tfunc main() {\n\t\tobj := b64.NewString(\"P____A____1\")\n\t\tif obj.Error() != nil {\n\t\t\tpanic(obj.Error())\n\t\t}\n\t\tprint(obj.Uint64(), \"\\n\")\n\t\tprint(obj.Int64(), \"\\n\")\n\t}\n\nResult:\n\n\t18446744006063816693\n\t-67645734923\n\n--\n\n#### Dependencies\n\n\tNONE\n\n#### Install\n```bash\ngo get gopkg.in/webnice/b64.v1\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebnice%2Fb64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebnice%2Fb64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebnice%2Fb64/lists"}