diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-04-19 00:57:57 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-04-19 01:01:52 +0200 |
| commit | 60140d3f5ebb22ef30d7f1b82a220c620e031963 (patch) | |
| tree | 5c5a088d4fa087375d2bd61e6ad75cdbe8070b3d /gopherschwift | |
| parent | 587ac99d26a026c4441ce224f52105d2dbd3751b (diff) | |
| download | go-schwift-60140d3f5ebb22ef30d7f1b82a220c620e031963.tar.gz | |
update golangci-lint config, fix new lints
Diffstat (limited to 'gopherschwift')
| -rw-r--r-- | gopherschwift/package.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) } |
