GO LIBRARY

Russian document codes,
without the ceremony.

Validate and generate the codes your Go application needs.

SUPPORTED CODES

The essentials, covered.

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