2025-06-05 12:10:26 -06:00

19 lines
218 B
Go

package pokeapi
import (
"net/http"
"time"
)
type Client struct {
httpClient http.Client
}
func NewClient(timeout time.Duration) Client {
return Client{
httpClient: http.Client{
Timeout: timeout,
},
}
}