Skip to content

Commit

Permalink
feat: enable resty's vanity package url (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm authored Dec 1, 2024
1 parent 48a1a59 commit 6454923
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ func TestClientLogCallbacks(t *testing.T) {
assertNil(t, err)
assertNotNil(t, resp)
assertEqual(t, int64(50), resp.Size())
assertEqual(t, true, strings.Contains(lb.String(), "Overwriting an existing on-request-debug-log callback from=github.com/go-resty/resty/v3.TestClientLogCallbacks.func1 to=github.com/go-resty/resty/v3.TestClientLogCallbacks.func3"))
assertEqual(t, true, strings.Contains(lb.String(), "Overwriting an existing on-request-debug-log callback from=resty.dev/v3.TestClientLogCallbacks.func1 to=resty.dev/v3.TestClientLogCallbacks.func3"))

c.OnRequestDebugLog(nil)
c.OnResponseDebugLog(func(r *DebugLog) {
Expand All @@ -898,7 +898,7 @@ func TestClientLogCallbacks(t *testing.T) {
assertNil(t, err)
assertNotNil(t, resp)
assertEqual(t, int64(50), resp.Size())
assertEqual(t, true, strings.Contains(lb.String(), "Overwriting an existing on-response-debug-log callback from=github.com/go-resty/resty/v3.TestClientLogCallbacks.func2 to=github.com/go-resty/resty/v3.TestClientLogCallbacks.func4"))
assertEqual(t, true, strings.Contains(lb.String(), "Overwriting an existing on-response-debug-log callback from=resty.dev/v3.TestClientLogCallbacks.func2 to=resty.dev/v3.TestClientLogCallbacks.func4"))
}

func TestDebugLogSimultaneously(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

"golang.org/x/net/proxy"

"github.com/go-resty/resty/v3"
"resty.dev/v3"
)

type DropboxError struct {
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/go-resty/resty/v3
module resty.dev/v3

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion resty.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT

// Package resty provides Simple HTTP and REST client library for Go.
package resty
package resty // import "resty.dev/v3"

import (
"math"
Expand Down

0 comments on commit 6454923

Please sign in to comment.