GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • docs-code
  • GitHub

This view

  • Original page
  • New address

GeezerVison is showing sshaplygin.github.io — docs-code — Russian document codes for Go

GO LIBRARY

Russian document codes,
without the ceremony.

Validate and generate the codes your Go application needs.

Get started Package docs →

SUPPORTED CODES

The essentials, covered.

  • INNTaxpayer Identification NumberValidate · Generate
  • BIKBank Identification CodeValidate · Generate
  • KPPTax Registration Reason CodeValidate · Generate
  • OGRNPrimary State Registration NumberValidate · Generate
  • OGRNIPRegistration Number for individualsValidate · Generate
  • SNILSInsurance Individual Account NumberValidate · Generate

OKATO format and hierarchy validation is also available. Existence lookup and generation are not implemented.

USAGE

A small API.

Install

go get github.com/sshaplygin/docs-code

Validate

valid, err := docs_code.Validate(
  docs_code.INN,
  "526317984689",
)

Generate

code, err := docs_code.Generate(
  docs_code.SNILS,
)

MORE CONTROL

Need a specific operation?

Each document type is available as a focused package. Use it directly when your integration needs more than the common API.

Explore packages
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.