Skip to content

Commit 8fbd1f0

Browse files
committed
fix: add v2 package path
1 parent 4a7cf21 commit 8fbd1f0

14 files changed

+16
-16
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# paperswithcode-go
22

3-
[![Go](https://github.com/codingpot/paperswithcode-go/actions/workflows/go.yaml/badge.svg)](https://github.com/codingpot/paperswithcode-go/actions/workflows/go.yaml)
3+
[![Go](https://github.com/codingpot/paperswithcode-go/v2/actions/workflows/go.yaml/badge.svg)](https://github.com/codingpot/paperswithcode-go/v2/actions/workflows/go.yaml)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/codingpot/paperswithcode-go)](https://goreportcard.com/report/github.com/codingpot/paperswithcode-go)
55
[![Go Reference](https://pkg.go.dev/badge/github.com/codingpot/paperswithcode-go.svg)](https://pkg.go.dev/github.com/codingpot/paperswithcode-go)
66
[![codecov](https://codecov.io/gh/codingpot/paperswithcode-go/branch/main/graph/badge.svg?token=MhzDKZOtWK)](https://codecov.io/gh/codingpot/paperswithcode-go)
@@ -19,4 +19,4 @@ import "github.com/codingpot/paperswithcode-go"
1919
c := paperswithcode_go.NewClient()
2020
papers, _ := c.PaperList(paperswithcode_go.PaperListParamsDefault())
2121
gan, _ := c.PaperGet(paperswithcode_go.GetPaperIDFromPaperTitle("Generative Adversarial Networks"))
22-
```
22+
```

client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"time"
88

9-
"github.com/codingpot/paperswithcode-go/internal/transport"
9+
"github.com/codingpot/paperswithcode-go/v2/internal/transport"
1010
)
1111

1212
const (

client_example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package paperswithcode_go_test
33
import (
44
"fmt"
55

6-
paperswithcode_go "github.com/codingpot/paperswithcode-go"
6+
paperswithcode_go "github.com/codingpot/paperswithcode-go/v2"
77
)
88

99
func Example() {

client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package paperswithcode_go
22

33
import (
44
"fmt"
5-
"github.com/codingpot/paperswithcode-go/internal/testutils"
5+
"github.com/codingpot/paperswithcode-go/v2/internal/testutils"
66
"net/http"
77
"net/http/httptest"
88
"testing"

cmd/client/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/codingpot/paperswithcode-go"
5+
"github.com/codingpot/paperswithcode-go/v2"
66
"os"
77
"strings"
88
)

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module github.com/codingpot/paperswithcode-go
1+
module github.com/codingpot/paperswithcode-go/v2
22

33
go 1.16
44

5-
require github.com/stretchr/testify v1.7.0
5+
require github.com/stretchr/testify v1.7.0

paper_get.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package paperswithcode_go
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/codingpot/paperswithcode-go/models"
6+
"github.com/codingpot/paperswithcode-go/v2/models"
77
"net/url"
88
)
99

paper_list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package paperswithcode_go
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/codingpot/paperswithcode-go/models"
6+
"github.com/codingpot/paperswithcode-go/v2/models"
77
"net/url"
88
)
99

paper_method_list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package paperswithcode_go
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/codingpot/paperswithcode-go/models"
6+
"github.com/codingpot/paperswithcode-go/v2/models"
77
"net/http"
88
"net/url"
99
)

paper_method_list_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package paperswithcode_go
22

33
import (
4-
"github.com/codingpot/paperswithcode-go/models"
4+
"github.com/codingpot/paperswithcode-go/v2/models"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

paper_repository_list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package paperswithcode_go
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/codingpot/paperswithcode-go/models"
6+
"github.com/codingpot/paperswithcode-go/v2/models"
77
"net/url"
88
)
99

paper_result_list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package paperswithcode_go
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/codingpot/paperswithcode-go/models"
6+
"github.com/codingpot/paperswithcode-go/v2/models"
77
"net/url"
88
)
99

paper_task_list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package paperswithcode_go
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/codingpot/paperswithcode-go/models"
6+
"github.com/codingpot/paperswithcode-go/v2/models"
77
"net/url"
88
)
99

paper_task_list_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package paperswithcode_go
22

33
import (
4-
"github.com/codingpot/paperswithcode-go/models"
4+
"github.com/codingpot/paperswithcode-go/v2/models"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

0 commit comments

Comments
 (0)