Skip to content

Commit 8a8624c

Browse files
committed
init
1 parent 48d2696 commit 8a8624c

File tree

7 files changed

+213
-0
lines changed

7 files changed

+213
-0
lines changed

errors.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ var (
1515
ErrInvalidValue = errors.New("invalid code value")
1616

1717
ErrInvalidBIKCountryCode = errors.New("invalid bik country code")
18+
19+
ErrNotImplemented = errors.New("method does not implemented")
1820
)

models.go

Lines changed: 178 additions & 0 deletions
Large diffs are not rendered by default.

okato/okato.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package okato
2+
3+
// Validate check to valid OKATO format
4+
// example: input format is 17205000000
5+
func Validate() (bool, error) {
6+
return false, ErrNotImplemented
7+
}

okato/okato_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package okato
2+
3+
import "testing"
4+
5+
func TestValidate(t *testing.T) {
6+
7+
}

oktmo/oktmo.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package oktmo
2+
3+
// Validate check to valid OKTMO format
4+
// example: input format is 17605101
5+
func Validate() (bool, error) {
6+
return false, ErrNotImplemented
7+
}

oktmo/oktmo_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package oktmo
2+
3+
import "testing"
4+
5+
func TestValidate(t *testing.T) {
6+
7+
}

snils/snils.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ func Validate(snils string) (bool, error) {
3535

3636
return hashSum%101 == code, nil
3737
}
38+
39+
// Generate generate random
40+
func Generate() string {
41+
return ""
42+
}

0 commit comments

Comments
 (0)