csum

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcINN

func CalcINN[V Number](inn V) (uint64, error)

CalcINN calculates checksum of INN private person

func CalcINNLE

func CalcINNLE[V Number](inn V) (uint64, error)

CalcINNLE calculates checksum of INN legal entity

func CalcOGRN

func CalcOGRN[V Number](ogrn V) (uint64, error)

CalcOGRN calculates checksum of OGRN legal entity

func CalcOGRNIP

func CalcOGRNIP[V Number](ogrnip V) (uint64, error)

CalcOGRNIP calculates checksum of OGRN individual entrepreneur

func CalcSNILS

func CalcSNILS[V Number](snils V) uint64

CalcSNILS calculates checksum of SNILS

Types

type Number

type Number interface {
	int | int32 | int64 | uint | uint32 | uint64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL