Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Pull Request Description

## Summary of Changes

[Brief description of the changes introduced by this PR.]

## Related Issue (if applicable)

[Link to the related issue or a brief explanation of the problem this PR addresses.]

## Type of Change

Mark the type of change made:

- [ ] Bugfix
- [ ] New Feature
- [ ] Performance Improvement
- [ ] Documentation
- [ ] Other: [specify]

## Pre-merge Checklist

Make sure to have done the following before submitting the pull request:

- [ ] I have tested the changes locally and they are working as expected.
- [ ] I have added tests that demonstrate my solution is effective.
- [ ] I have updated the documentation as necessary.

## Additional Comments

[Add any additional comments or relevant information here.]

## Is this a security-related request?

- [ ] Yes
- [ ] No

## Steps to Test (if applicable)

[Provide detailed steps on how to review and test the changes made in this PR.]
File renamed without changes.
10 changes: 5 additions & 5 deletions brazilcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package brazilcode
import (
"errors"

"github.com/potatowski/brazilcode/src/cnh"
"github.com/potatowski/brazilcode/src/cnpj"
"github.com/potatowski/brazilcode/src/cpf"
iface "github.com/potatowski/brazilcode/src/interface"
"github.com/potatowski/brazilcode/src/voterRegistration"
"github.com/potatowski/brazilcode/v2/src/cnh"
"github.com/potatowski/brazilcode/v2/src/cnpj"
"github.com/potatowski/brazilcode/v2/src/cpf"
iface "github.com/potatowski/brazilcode/v2/src/interface"
"github.com/potatowski/brazilcode/v2/src/voterRegistration"
)

var CPF = cpf.CPF{}
Expand Down
2 changes: 1 addition & 1 deletion brazilcode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package brazilcode_test
import (
"testing"

"github.com/potatowski/brazilcode"
"github.com/potatowski/brazilcode/v2"
)

func TestIsValid(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module github.com/potatowski/brazilcode
module github.com/potatowski/brazilcode/v2


go 1.20
2 changes: 1 addition & 1 deletion src/cnh/cnh.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cnh
import (
"fmt"

"github.com/potatowski/brazilcode/src/utils"
"github.com/potatowski/brazilcode/v2/src/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion src/cnh/cnh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cnh
import (
"testing"

iface "github.com/potatowski/brazilcode/src/interface"
iface "github.com/potatowski/brazilcode/v2/src/interface"
)

var doc iface.Document = CNH{}
Expand Down
2 changes: 1 addition & 1 deletion src/cnpj/cnpj.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

"github.com/potatowski/brazilcode/src/utils"
"github.com/potatowski/brazilcode/v2/src/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion src/cnpj/cnpj_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cnpj
import (
"testing"

iface "github.com/potatowski/brazilcode/src/interface"
iface "github.com/potatowski/brazilcode/v2/src/interface"
)

var doc iface.Document = CNPJ{}
Expand Down
2 changes: 1 addition & 1 deletion src/cpf/cpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

"github.com/potatowski/brazilcode/src/utils"
"github.com/potatowski/brazilcode/v2/src/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion src/cpf/cpf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cpf
import (
"testing"

iface "github.com/potatowski/brazilcode/src/interface"
iface "github.com/potatowski/brazilcode/v2/src/interface"
)

var doc iface.Document = CPF{}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/calculator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils_test
import (
"testing"

"github.com/potatowski/brazilcode/src/utils"
"github.com/potatowski/brazilcode/v2/src/utils"
)

func TestCalculator(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/digit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils_test
import (
"testing"

"github.com/potatowski/brazilcode/src/utils"
"github.com/potatowski/brazilcode/v2/src/utils"
)

func TestGetDigit(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/text_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/potatowski/brazilcode/src/utils"
"github.com/potatowski/brazilcode/v2/src/utils"
)

func TestRemoveChar(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion src/voterRegistration/voterRegistration.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

"github.com/potatowski/brazilcode/src/utils"
"github.com/potatowski/brazilcode/v2/src/utils"
)

var ufToCode = map[string]string{
Expand Down
2 changes: 1 addition & 1 deletion src/voterRegistration/voterRegistration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package voterRegistration
import (
"testing"

iface "github.com/potatowski/brazilcode/src/interface"
iface "github.com/potatowski/brazilcode/v2/src/interface"
)

var doc iface.Document = VoterRegistration{}
Expand Down