Skip to content

Commit

Permalink
Merge pull request #8 from sshaplygin/ref-project-name
Browse files Browse the repository at this point in the history
ref: project name
  • Loading branch information
sshaplygin authored Dec 24, 2023
2 parents e8ee475 + 949a20f commit 9bc2d11
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'

- name: Build
run: go build -v ./...
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ru-doc-code
# docs-code

[![GoDoc](https://godoc.org/github.com/sshaplygin/ru-doc-code?status.svg)](https://godoc.org/github.com/sshaplygin/ru-doc-code) [![Go Coverage](https://github.com/sshaplygin/ru-doc-code/wiki/coverage.svg)](https://raw.githack.com/wiki/sshaplygin/ru-doc-code/coverage.html) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sshaplygin/ru-doc-code/blob/master/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/sshaplygin/ru-doc-code)](https://goreportcard.com/report/github.com/sshaplygin/ru-doc-code)
[![GoDoc](https://godoc.org/github.com/sshaplygin/docs-code?status.svg)](https://godoc.org/github.com/sshaplygin/docs-code) [![Go Coverage](https://github.com/sshaplygin/docs-code/wiki/coverage.svg)](https://raw.githack.com/wiki/sshaplygin/docs-code/coverage.html) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sshaplygin/docs-code/blob/master/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/sshaplygin/docs-code)](https://goreportcard.com/report/github.com/sshaplygin/docs-code)

It is validator about official of code documents from Russia in Go
It is validator about official of documents codes in Go

## Alert

Expand Down Expand Up @@ -36,11 +36,14 @@ Status of implementation by code package
- [ ] SNILS
- [x] Generation method
- [ ] Validation method
- [ ] Swift
- [x] Generation method
- [ ] Validation method

## Usage

``` bash
go get github.com/sshaplygin/ru-doc-code
go get github.com/sshaplygin/docs-code
```

### Example
Expand All @@ -50,7 +53,7 @@ go get github.com/sshaplygin/ru-doc-code
import (
"log"

"github.com/sshaplygin/ru-doc-code/inn"
"github.com/sshaplygin/docs-code/inn"
)

...
Expand Down
4 changes: 2 additions & 2 deletions bik/bik.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bik
import (
"strconv"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/ru-doc-code/utils"
"github.com/sshaplygin/docs-code/models"
"github.com/sshaplygin/docs-code/utils"
)

// Validate check to valid BIK format
Expand Down
2 changes: 1 addition & 1 deletion bik/bik_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/docs-code/models"
)

func TestValidate(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/sshaplygin/ru-doc-code
module github.com/sshaplygin/docs-code

go 1.18
go 1.21

require github.com/stretchr/testify v1.8.4

Expand Down
4 changes: 2 additions & 2 deletions inn/inn.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strconv"
"strings"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/ru-doc-code/utils"
"github.com/sshaplygin/docs-code/models"
"github.com/sshaplygin/docs-code/utils"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions inn/inn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/ru-doc-code/utils"
"github.com/sshaplygin/docs-code/models"
"github.com/sshaplygin/docs-code/utils"
)

func TestValidate(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions kpp/kpp.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package kpp

import (
"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/ru-doc-code/utils"
"github.com/sshaplygin/docs-code/models"
"github.com/sshaplygin/docs-code/utils"
)

type KPP struct {
Expand Down
2 changes: 1 addition & 1 deletion kpp/kpp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/docs-code/models"
)

//nolint:dupl
Expand Down
4 changes: 2 additions & 2 deletions ogrn/ogrn.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ogrn
import (
"strconv"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/ru-doc-code/utils"
"github.com/sshaplygin/docs-code/models"
"github.com/sshaplygin/docs-code/utils"
)

// Validate check to valid OGRN format
Expand Down
2 changes: 1 addition & 1 deletion ogrn/ogrn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/docs-code/models"
)

func TestValidate(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions ogrnip/ogrnip.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ogrnip
import (
"strconv"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/ru-doc-code/utils"
"github.com/sshaplygin/docs-code/models"
"github.com/sshaplygin/docs-code/utils"
)

// Validate check to valid OGRNIP format
Expand Down
2 changes: 1 addition & 1 deletion ogrnip/ogrnip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/docs-code/models"
)

func TestValidate(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions snils/snils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strconv"
"strings"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/ru-doc-code/utils"
"github.com/sshaplygin/docs-code/models"
"github.com/sshaplygin/docs-code/utils"
)

// Validate check to valid SNILS format
Expand Down
2 changes: 1 addition & 1 deletion snils/snils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/docs-code/models"
)

func TestValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion utils/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/sshaplygin/ru-doc-code/models"
"github.com/sshaplygin/docs-code/models"
)

func RandomDigits(len int) int64 {
Expand Down

0 comments on commit 9bc2d11

Please sign in to comment.