{"id":21323307,"url":"https://github.com/sshaplygin/docs-code","last_synced_at":"2025-12-14T21:21:14.434Z","repository":{"id":39637482,"uuid":"243510677","full_name":"sshaplygin/docs-code","owner":"sshaplygin","description":"Official documents codes validation and generation in Go","archived":false,"fork":false,"pushed_at":"2024-01-07T21:08:19.000Z","size":219,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T19:09:45.224Z","etag":null,"topics":["bik","bik-codes","documentation","golang","inn","inn-codes","kpp","kpp-codes","ogrn-codes","ogrnip","ogrnip-codes","orgn","snils","snils-codes","validator"],"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/sshaplygin.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":"2020-02-27T12:10:56.000Z","updated_at":"2024-01-07T18:33:00.000Z","dependencies_parsed_at":"2024-06-19T16:22:40.406Z","dependency_job_id":"564ef5c9-e381-44d2-8ad2-6faf1e74ec9c","html_url":"https://github.com/sshaplygin/docs-code","commit_stats":null,"previous_names":["mrfoe7/ru-doc-code","sshaplygin/ru-doc-code"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaplygin%2Fdocs-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaplygin%2Fdocs-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaplygin%2Fdocs-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaplygin%2Fdocs-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshaplygin","download_url":"https://codeload.github.com/sshaplygin/docs-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225796988,"owners_count":17525601,"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":["bik","bik-codes","documentation","golang","inn","inn-codes","kpp","kpp-codes","ogrn-codes","ogrnip","ogrnip-codes","orgn","snils","snils-codes","validator"],"created_at":"2024-11-21T20:22:53.357Z","updated_at":"2025-12-14T21:21:14.062Z","avatar_url":"https://github.com/sshaplygin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docs-code\n\n[![GoDoc](https://godoc.org/github.com/sshaplygin/docs-code?status.svg)](https://godoc.org/github.com/sshaplygin/docs-code) [![Go Coverage](https://github.com/sshaplygin/docs-code/wiki/coverage.svg)](https://raw.githack.com/wiki/sshaplygin/docs-code/coverage.html) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sshaplygin/docs-code/blob/master/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/sshaplygin/docs-code)](https://goreportcard.com/report/github.com/sshaplygin/docs-code)\n\nIt is validator about official of documents codes in Go\n\n## Alert\n\nIt is not production ready public API! It is API could be change it the future. To be attentive for this.\n\n## Status\n\nStatus of implementation by code package:\n\n- [ ] OKATO\n  - [ ] Generate method\n  - [ ] Validate method\n\nFull supported codes: BIK, INN, KPP, OGRN, OGRNIP, SNILS\n\n## Usage\n\n``` bash\ngo get github.com/sshaplygin/docs-code\n```\n\n### Example\n\n```go\n\nimport (\n\t\"log\"\n\t\n\t\"github.com/sshaplygin/docs-code\"\n)\n\n...\n\nisValid, err := docs_code.Validate(docs_code.INN, \"526317984689\")\nif err != nil {\n  log.Error(err)\n}\nif !isValid {\n  log.Println(\"INN is invalid\")\n} else {\n  log.Println(\"INN is valid\")\n}\n```\n\n## Documentation\n\n* Info about INN  - [ИНН](https://ru.wikipedia.org/wiki/%D0%98%D0%B4%D0%B5%D0%BD%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80_%D0%BD%D0%B0%D0%BB%D0%BE%D0%B3%D0%BE%D0%BF%D0%BB%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D1%89%D0%B8%D0%BA%D0%B0)\n* Info about SNILS - [СНИЛС](http://www.consultant.ru/document/cons_doc_LAW_124607/68ac3b2d1745f9cc7d4332b63c2818ca5d5d20d0/)\n* Info about OGRN - [ОГРН](https://ru.wikipedia.org/wiki/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D0%BD%D0%BE%D0%B9_%D0%B3%D0%BE%D1%81%D1%83%D0%B4%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9_%D1%80%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80)\n* Info about OGRNIP - [ОГРНИП](http://www.temabiz.com/terminy/chto-takoe-ogrnip.html)\n* Info about BIK - [БИК](https://ru.wikipedia.org/wiki/%D0%91%D0%B0%D0%BD%D0%BA%D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9_%D0%B8%D0%B4%D0%B5%D0%BD%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BA%D0%BE%D0%B4)\n* Info about KPP - [КПП](https://dic.academic.ru/dic.nsf/ruwiki/239834)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshaplygin%2Fdocs-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshaplygin%2Fdocs-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshaplygin%2Fdocs-code/lists"}