This commit is contained in:
2025-03-10 22:14:46 +02:00
parent bea73f0115
commit 0148583f5b
5 changed files with 144 additions and 6 deletions

20
pokeapi/client.go Normal file
View File

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