Skip to content

Commit e7bb2cd

Browse files
authored
build: config updates and package godoc update (#937)
1 parent b4ff634 commit e7bb2cd

File tree

5 files changed

+23
-19
lines changed

5 files changed

+23
-19
lines changed

BUILD.bazel

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
11
load("@bazel_gazelle//:def.bzl", "gazelle")
22
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
33

4-
# gazelle:prefix github.com/go-resty/resty/v2
4+
# gazelle:prefix resty.dev/v3
55
# gazelle:go_naming_convention import_alias
66
gazelle(name = "gazelle")
77

88
go_library(
99
name = "resty",
1010
srcs = [
11+
"circuit_breaker.go",
1112
"client.go",
13+
"curl.go",
1214
"digest.go",
15+
"load_balancer.go",
1316
"middleware.go",
17+
"multipart.go",
1418
"redirect.go",
1519
"request.go",
1620
"response.go",
1721
"resty.go",
1822
"retry.go",
23+
"sse.go",
24+
"stream.go",
1925
"trace.go",
20-
"transport_js.go",
21-
"transport_other.go",
26+
"transport_dial.go",
27+
"transport_dial_wasm.go",
2228
"util.go",
23-
"util_curl.go",
2429
],
25-
importpath = "github.com/go-resty/resty/v2",
30+
importpath = "resty.dev/v3",
2631
visibility = ["//visibility:public"],
27-
deps = [
28-
"//shellescape",
29-
"@org_golang_x_net//publicsuffix:go_default_library",
30-
],
32+
deps = ["@org_golang_x_net//publicsuffix:go_default_library"],
3133
)
3234

3335
go_test(
3436
name = "resty_test",
3537
srcs = [
38+
"benchmark_test.go",
39+
"cert_watcher_test.go",
3640
"client_test.go",
3741
"context_test.go",
38-
"example_test.go",
42+
"curl_test.go",
43+
"digest_test.go",
44+
"load_balancer_test.go",
3945
"middleware_test.go",
46+
"multipart_test.go",
4047
"request_test.go",
4148
"resty_test.go",
4249
"retry_test.go",
50+
"sse_test.go",
4351
"util_test.go",
4452
],
4553
data = glob([".testdata/*"]),
4654
embed = [":resty"],
47-
deps = [
48-
"@org_golang_x_net//proxy:go_default_library",
49-
"@org_golang_x_time//rate:go_default_library",
50-
],
5155
)
5256

5357
alias(

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe
2424

2525
go_rules_dependencies()
2626

27-
go_register_toolchains(version = "1.19")
27+
go_register_toolchains(version = "1.21")
2828

2929
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
3030

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module resty.dev/v3
22

33
go 1.21
44

5-
require golang.org/x/net v0.27.0
5+
require golang.org/x/net v0.33.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
2-
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
1+
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
2+
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=

resty.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44
// SPDX-License-Identifier: MIT
55

6-
// Package resty provides Simple HTTP and REST client library for Go.
6+
// Package resty provides Simple HTTP, REST, and SSE client library for Go.
77
package resty // import "resty.dev/v3"
88

99
import (

0 commit comments

Comments
 (0)