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

build: config updates and package godoc update #937

Merged
merged 1 commit into from
Jan 3, 2025
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
32 changes: 18 additions & 14 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,53 +1,57 @@
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

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

go_library(
name = "resty",
srcs = [
"circuit_breaker.go",
"client.go",
"curl.go",
"digest.go",
"load_balancer.go",
"middleware.go",
"multipart.go",
"redirect.go",
"request.go",
"response.go",
"resty.go",
"retry.go",
"sse.go",
"stream.go",
"trace.go",
"transport_js.go",
"transport_other.go",
"transport_dial.go",
"transport_dial_wasm.go",
"util.go",
"util_curl.go",
],
importpath = "github.com/go-resty/resty/v2",
importpath = "resty.dev/v3",
visibility = ["//visibility:public"],
deps = [
"//shellescape",
"@org_golang_x_net//publicsuffix:go_default_library",
],
deps = ["@org_golang_x_net//publicsuffix:go_default_library"],
)

go_test(
name = "resty_test",
srcs = [
"benchmark_test.go",
"cert_watcher_test.go",
"client_test.go",
"context_test.go",
"example_test.go",
"curl_test.go",
"digest_test.go",
"load_balancer_test.go",
"middleware_test.go",
"multipart_test.go",
"request_test.go",
"resty_test.go",
"retry_test.go",
"sse_test.go",
"util_test.go",
],
data = glob([".testdata/*"]),
embed = [":resty"],
deps = [
"@org_golang_x_net//proxy:go_default_library",
"@org_golang_x_time//rate:go_default_library",
],
)

alias(
Expand Down
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe

go_rules_dependencies()

go_register_toolchains(version = "1.19")
go_register_toolchains(version = "1.21")

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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module resty.dev/v3

go 1.21

require golang.org/x/net v0.27.0
require golang.org/x/net v0.33.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
2 changes: 1 addition & 1 deletion resty.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

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

import (
Expand Down
Loading