Skip to content

Валидатор ИНН физических и юридических лиц

License

Notifications You must be signed in to change notification settings

tit/go-inn-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

innValidator

Валидатор ИНН физических и юридических лиц

Установка

$ go get github.com/tit/go-inn-validator

Использование

package main

import (
  "fmt"
  "github.com/tit/go-inn-validator"
)

func main() {
  legalPersonInn := "7802565953"
  isValid, err := innValidator.IsLegalPersonInnValid(legalPersonInn)
  if err != nil {
    return
  }
  fmt.Printf("%s is %t legal person inn\n", legalPersonInn, isValid)

  privatePersonInn := "614309291796"
  isValid, err = innValidator.IsPrivatePersonInnValid(privatePersonInn)
  if err != nil {
    return
  }
  fmt.Printf("%s is %t private person inn\n", privatePersonInn, isValid)
}

About

Валидатор ИНН физических и юридических лиц

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages