{"id":17259873,"url":"https://github.com/sigmavirus24/salesforceid","last_synced_at":"2025-03-26T09:26:08.313Z","repository":{"id":52401455,"uuid":"191750495","full_name":"sigmavirus24/salesforceid","owner":"sigmavirus24","description":"Golang library for interacting with and validating Salesforce Identifiers","archived":false,"fork":false,"pushed_at":"2021-04-30T00:35:07.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T10:43:21.144Z","etag":null,"topics":["base62","go","golang","salesforce","sfid"],"latest_commit_sha":null,"homepage":null,"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/sigmavirus24.png","metadata":{"files":{"readme":"README.markdown","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":"2019-06-13T11:30:45.000Z","updated_at":"2021-04-30T00:35:07.000Z","dependencies_parsed_at":"2022-09-04T10:30:14.065Z","dependency_job_id":null,"html_url":"https://github.com/sigmavirus24/salesforceid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigmavirus24%2Fsalesforceid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigmavirus24%2Fsalesforceid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigmavirus24%2Fsalesforceid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigmavirus24%2Fsalesforceid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sigmavirus24","download_url":"https://codeload.github.com/sigmavirus24/salesforceid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245624602,"owners_count":20645978,"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":["base62","go","golang","salesforce","sfid"],"created_at":"2024-10-15T07:46:26.590Z","updated_at":"2025-03-26T09:26:08.289Z","avatar_url":"https://github.com/sigmavirus24.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# salesforceid\n\n[![GoDoc Reference](https://godoc.org/github.com/sigmavirus24/salesforceid?status.svg)](https://godoc.org/github.com/sigmavirus24/salesforceid)\n[![CircleCI Build Status](https://circleci.com/gh/sigmavirus24/salesforceid.svg?style=svg)](https://circleci.com/gh/sigmavirus24/salesforceid)\n[![Azure Pipelines Build Status](https://dev.azure.com/graffatcolmingov/sigmavirus24/_apis/build/status/sigmavirus24.salesforceid?branchName=master)](https://dev.azure.com/graffatcolmingov/sigmavirus24/_build/latest?definitionId=1\u0026branchName=master)\n[![GolangCI Status](https://golangci.com/badges/github.com/sigmavirus24/salesforceid.svg)](https://golangci.com)\n\nThis is a library that enables handling and manipulation of Salesforce \nIdentifiers. Specifically it enables converting identifiers between 15 \ncharacter (case-sensitive) and 18 character (case-insensitive) versions.\n\nThis library parses a Salesforce identifier for the user and provides \nsome convenience methods for handling interactions with the identifier.\n\n## Examples\n\nIt's possible to have different versions of a Salesforce identifier. 15 \ncharacter identifiers are case-sensitive while 18 character identifers are \nnot. As a result, this library always checks and adjusts the casing of \nidentifiers and always produces 18 character identifiers. This allows users to \nconfidently use which ever form they prefer.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/sigmavirus24/salesforceid\"\n)\n\nfunc main() {\n\t// Note that we're using an 18-character, entirely lower-cased Salesforce identifier here\n\tsfid, err := salesforceid.New(\"00d000000000062eaa\")\n\tif err != nil {\n\t\tfmt.Printf(\"encountered unexpected error: %q\", err)\n\t\tos.Exit(1)\n\t}\n\tfmt.Println(sfid)\n}\n```\n\nFurthermore, one can use this library to perform arithmetic on the \nidentifiers. For an example of where this might be useful see the \n[example](./example_test.go) in this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigmavirus24%2Fsalesforceid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigmavirus24%2Fsalesforceid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigmavirus24%2Fsalesforceid/lists"}