New provides a new Builder for the given endpoint.
(endpoint string)
| 31 | |
| 32 | // New provides a new Builder for the given endpoint. |
| 33 | func New(endpoint string) Builder { |
| 34 | return &builder{ |
| 35 | endpoint: endpoint, |
| 36 | method: "GET", |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // WithContext adds a context to the request. |
| 41 | // If no context is provided, context.Background() is used instead. |
no outgoing calls
no test coverage detected