diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-12 19:18:05 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 74e36f0ead717105f26087c2cab08b41ba5a7ce8 (patch) | |
| tree | 1eb2b7516bea705c9b5a50ce0965e170414ed880 /internal/http/http.go | |
| parent | 682d70091af2044ff6d8b350da9dff13163232e2 (diff) | |
All: Document everything to pass revive lint
Diffstat (limited to 'internal/http/http.go')
| -rw-r--r-- | internal/http/http.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
