Install
go get github.com/sshaplygin/docs-code
GO LIBRARY
Validate and generate the codes your Go application needs.
SUPPORTED CODES
OKATO format and hierarchy validation is also available. Existence lookup and generation are not implemented.
USAGE
go get github.com/sshaplygin/docs-code
valid, err := docs_code.Validate(
docs_code.INN,
"526317984689",
)
code, err := docs_code.Generate(
docs_code.SNILS,
)
MORE CONTROL
Each document type is available as a focused package. Use it directly when your integration needs more than the common API.
Explore packages