From e7bb2cd59984dd5bfbf9957ddd1912c63093bd5a Mon Sep 17 00:00:00 2001 From: "Jeevanandam M." Date: Thu, 2 Jan 2025 19:38:10 -0800 Subject: [PATCH] build: config updates and package godoc update (#937) --- BUILD.bazel | 32 ++++++++++++++++++-------------- WORKSPACE | 2 +- go.mod | 2 +- go.sum | 4 ++-- resty.go | 2 +- 5 files changed, 23 insertions(+), 19 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 0799f53a..2ba36bba 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -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( diff --git a/WORKSPACE b/WORKSPACE index 504de145..44dc59ea 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -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") diff --git a/go.mod b/go.mod index b575af94..e8876115 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 75667142..16660ab5 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/resty.go b/resty.go index 1d6bc4af..e52ec570 100644 --- a/resty.go +++ b/resty.go @@ -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 (