Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable resty's vanity package url #923

Merged
merged 1 commit into from
Dec 1, 2024
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
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