Skip to content

Commit

Permalink
Merge pull request #13 from DavidBelicza/go-mod-v2
Browse files Browse the repository at this point in the history
Added v2 to the package paths
  • Loading branch information
DavidBelicza authored Jul 8, 2021
2 parents ed47233 + a32f930 commit 535b050
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ package main
import (
"fmt"

"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/v2"
)

func main() {
Expand Down Expand Up @@ -164,7 +164,7 @@ package main
import (
"fmt"

"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/v2"
)

func main() {
Expand Down Expand Up @@ -225,7 +225,7 @@ package main
import (
"fmt"

"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/v2"
)

func main() {
Expand Down Expand Up @@ -275,7 +275,7 @@ package main
import (
"fmt"

"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/v2"
)

func main() {
Expand Down Expand Up @@ -324,7 +324,7 @@ package main
import (
"fmt"

"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/v2"
)

func main() {
Expand Down Expand Up @@ -363,7 +363,7 @@ package main
import (
"fmt"

"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/v2"
)

func main() {
Expand Down Expand Up @@ -421,7 +421,7 @@ package main
import (
"fmt"

"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/v2"
)

func main() {
Expand Down Expand Up @@ -467,7 +467,7 @@ import (
"fmt"
"time"

"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/v2"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions convert/builder.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package convert

import (
"github.com/DavidBelicza/TextRank/parse"
"github.com/DavidBelicza/TextRank/rank"
"github.com/DavidBelicza/TextRank/v2/parse"
"github.com/DavidBelicza/TextRank/v2/rank"
)

// TextToRank function converts a ParsedSentence object to Rank object, it is
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/DavidBelicza/TextRank
module github.com/DavidBelicza/TextRank/v2

go 1.15

Expand Down
6 changes: 3 additions & 3 deletions textrank.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package textrank

import (
"github.com/DavidBelicza/TextRank/convert"
"github.com/DavidBelicza/TextRank/parse"
"github.com/DavidBelicza/TextRank/rank"
"github.com/DavidBelicza/TextRank/v2/convert"
"github.com/DavidBelicza/TextRank/v2/parse"
"github.com/DavidBelicza/TextRank/v2/rank"
)

// TextRank structure contains the Rank data object. This structure is a wrapper
Expand Down
2 changes: 1 addition & 1 deletion textrank_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/DavidBelicza/TextRank/rank"
"github.com/DavidBelicza/TextRank/v2/rank"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 535b050

Please sign in to comment.