package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 23, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
An implementation of Common check-digit mod11 algorithm

Compatible with the ozzo-validation package.
Usage
import "github.com/kolkov/esr"
err := esr.Validate("639400")
signed := esr.Generate("1")
Documentation
¶
Generate return the check digit
Generate return the number with check digit
func Validate(value interface{}) error
Validate check number is valid or not based on Common algorithm
Source Files
¶
Click to show internal directories.
Click to hide internal directories.