We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b4163 commit 5870d87Copy full SHA for 5870d87
CNJ/validation.go
@@ -17,7 +17,7 @@ func ValidateCNJ(cnj string) (bool, error) {
17
return false, err
18
}
19
20
- vd, err := validVD(decomposedCNJ.ArgNumber)
+ vd, err := ValidVD(decomposedCNJ.ArgNumber)
21
if err != nil {
22
23
@@ -29,8 +29,8 @@ func ValidateCNJ(cnj string) (bool, error) {
29
30
31
32
-// validVD returns the verifyng digit from a given cnj using ArgNumber
33
-func validVD(argNumber string) (string, error) {
+// ValidVD returns the verifying digit from a given cnj using ArgNumber
+func ValidVD(argNumber string) (string, error) {
34
cnjInt, bl := new(big.Int).SetString(argNumber, 10)
35
if bl != true {
36
return "", errors.New("cant convert ArgNumber into big int")
0 commit comments