Skip to content

Commit

Permalink
rename import path to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Feb 4, 2022
1 parent 35ff901 commit 9423957
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"
"encoding/xml"
"errors"
"github.com/imroc/req/v2/internal/util"
"github.com/imroc/req/v3/internal/util"
"golang.org/x/net/publicsuffix"
"io"
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion decode.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package req

import (
"github.com/imroc/req/v2/internal/charsetutil"
"github.com/imroc/req/v3/internal/charsetutil"
"io"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/find-popular-repo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module find-popular-repo

go 1.13

require github.com/imroc/req/v2 v2.1.0
require github.com/imroc/req/v3 v3.0.0
4 changes: 2 additions & 2 deletions examples/find-popular-repo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strconv"

"github.com/imroc/req/v2"
"github.com/imroc/req/v3"
)

// Change the name if you want
Expand All @@ -21,7 +21,7 @@ func main() {
}

func init() {
req.EnableDumpOnlyHeader().EnableDebugLog(true).EnableTraceAll(true)
req.EnableDumpWithoutBody().EnableDebugLog().EnableTraceAll()
}

type Repo struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/upload/uploadclient/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/imroc/req/v2"
import "github.com/imroc/req/v3"

func main() {
req.EnableDumpNoRequestBody()
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/imroc/req/v2
module github.com/imroc/req/v3

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package req
import (
"encoding/base64"
"fmt"
"github.com/imroc/req/v2/internal/ascii"
"github.com/imroc/req/v3/internal/ascii"
"golang.org/x/net/http/httpguts"
"golang.org/x/net/idna"
"io"
Expand Down
2 changes: 1 addition & 1 deletion http_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bufio"
"errors"
"fmt"
"github.com/imroc/req/v2/internal/ascii"
"github.com/imroc/req/v3/internal/ascii"
"golang.org/x/net/http/httpguts"
"io"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion http_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package req

import (
"github.com/imroc/req/v2/internal/util"
"github.com/imroc/req/v3/internal/util"
"io"
"net/http"
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion internal/chunked.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"bytes"
"errors"
"fmt"
"github.com/imroc/req/v2/internal/util"
"github.com/imroc/req/v3/internal/util"
"io"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package req
import (
"bytes"
"fmt"
"github.com/imroc/req/v2/internal/util"
"github.com/imroc/req/v3/internal/util"
"io"
"io/ioutil"
"mime/multipart"
Expand Down
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"context"
"github.com/hashicorp/go-multierror"
"github.com/imroc/req/v2/internal/util"
"github.com/imroc/req/v3/internal/util"
"io"
"io/ioutil"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion textproto_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"bufio"
"bytes"
"fmt"
"github.com/imroc/req/v2/internal/util"
"github.com/imroc/req/v3/internal/util"
"io"
"io/ioutil"
"net/textproto"
Expand Down
4 changes: 2 additions & 2 deletions transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"bytes"
"errors"
"fmt"
"github.com/imroc/req/v2/internal"
"github.com/imroc/req/v2/internal/ascii"
"github.com/imroc/req/v3/internal"
"github.com/imroc/req/v3/internal/ascii"
"io"
"io/ioutil"
"net/http"
Expand Down
6 changes: 3 additions & 3 deletions transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"crypto/tls"
"errors"
"fmt"
"github.com/imroc/req/v2/internal/ascii"
"github.com/imroc/req/v2/internal/godebug"
"github.com/imroc/req/v2/internal/util"
"github.com/imroc/req/v3/internal/ascii"
"github.com/imroc/req/v3/internal/godebug"
"github.com/imroc/req/v3/internal/util"
htmlcharset "golang.org/x/net/html/charset"
"golang.org/x/text/encoding/ianaindex"
"io"
Expand Down
2 changes: 1 addition & 1 deletion transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"context"
"crypto/tls"
"errors"
"github.com/imroc/req/v2/internal/testcert"
"github.com/imroc/req/v3/internal/testcert"
"io"
"net"
"net/http"
Expand Down

0 comments on commit 9423957

Please sign in to comment.