Skip to content

Releases: sshaplygin/docs-code

Minor updates

18 Mar 22:08
f6b952d

Choose a tag to compare

Go & Tooling Upgrade

  • Bumped Go version from 1.21 to 1.25 in go.mod
  • Migrated golangci-lint config to v2 format (.golangci.yml): updated schema (version: "2"), replaced deprecated fields (deadlinetimeout, disable-alldefault: none), moved formatters to a separate section, restructured linter settings and exclusion rules

Bug Fixes

  • Fixed INN generation logicGenerate() and GenerateLegal() now select from a defined _supportedTypes slice instead of using fragile modular arithmetic on random digits
  • Removed stray debug fmt.Println in ogrn/models.go OGRN parsing
  • Fixed unit test issues identified by updated linter and corrected logic

Refactoring

  • Cleaned up test files across bik, inn, kpp, ogrn, ogrnip, okato, snils, and utils — removed redundant assertions and unused variables flagged by the new linter config
  • Added ForeignLegal to supported INN types via _supportedTypes slice
  • Added protobuf enum compatibility support for INN type (t field set in NewINN)
  • Updated CI workflow (.github/workflows/go.yml) to match new tooling
  • Updated parser submodule dependencies (parser/okato-states, parser/subjects)

Add OGRN and OGRNIP codes

07 Jan 19:58
ee133dc

Choose a tag to compare

Merge pull request #18 from sshaplygin/sshaplygin-patch-2

Update README.md

Added KPP code

07 Jan 00:02
237ac15

Choose a tag to compare

Added KPP code and refactored INN code

Added BIK code

04 Jan 18:51
8fc9a1c

Choose a tag to compare

Added BIK code with next methods:

  • Validate
  • Exists
  • Generate

Changed project layout

23 Dec 23:51
43fa2b6

Choose a tag to compare

Merge pull request #7 from sshaplygin/ref-struct

ref project struct