From 60140d3f5ebb22ef30d7f1b82a220c620e031963 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sun, 19 Apr 2026 00:57:57 +0200 Subject: update golangci-lint config, fix new lints --- gopherschwift/package.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gopherschwift/package.go') diff --git a/gopherschwift/package.go b/gopherschwift/package.go index d6b4e7b..834d0b7 100644 --- a/gopherschwift/package.go +++ b/gopherschwift/package.go @@ -74,10 +74,12 @@ type backend struct { userAgent string } +// EndpointURL implements the [schwift.Backend] interface. func (g *backend) EndpointURL() string { return g.c.Endpoint } +// Clone implements the [schwift.Backend] interface. func (g *backend) Clone(newEndpointURL string) schwift.Backend { clonedClient := *g.c clonedClient.Endpoint = newEndpointURL @@ -87,6 +89,7 @@ func (g *backend) Clone(newEndpointURL string) schwift.Backend { } } +// Do implements the [schwift.Backend] interface. func (g *backend) Do(req *http.Request) (*http.Response, error) { return g.do(req, false) } -- cgit v1.2.3