From 74e36f0ead717105f26087c2cab08b41ba5a7ce8 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Feb 2024 19:18:05 +0100 Subject: All: Document everything to pass revive lint --- internal/http/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/http') diff --git a/internal/http/http.go b/internal/http/http.go index ba081fd..09f1953 100644 --- a/internal/http/http.go +++ b/internal/http/http.go @@ -146,7 +146,7 @@ type Client struct { Timeout time.Duration } -// Returns a HTTP client with some default settings +// NewClient returns a HTTP client with some default settings func NewClient(client *http.Client) *Client { c := client if c == nil { @@ -169,7 +169,7 @@ func (c *Client) PostWithOpts(ctx context.Context, url string, opts *OptionalPar return c.Do(ctx, http.MethodPost, url, opts) } -// MethodWithOpts Do send a HTTP request using a method (e.g. GET, POST), an url and optional parameters +// Do sends a HTTP request using a method (e.g. GET, POST), an url and optional parameters // It returns the HTTP headers, the body and an error if there is one. func (c *Client) Do(ctx context.Context, method string, urlStr string, opts *OptionalParams) (http.Header, []byte, error) { // Make sure the url contains all the parameters -- cgit v1.2.3