2024-02-19 18:24:12 +05:30
|
|
|
package di
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/defval/di"
|
|
|
|
)
|
|
|
|
|
|
|
|
var httpClientDiOptions = di.Options(
|
|
|
|
di.Provide(newHttpClient),
|
|
|
|
)
|
|
|
|
|
|
|
|
func newHttpClient() *http.Client {
|
2024-03-05 19:44:10 +05:30
|
|
|
return &http.Client{}
|
2024-02-19 18:24:12 +05:30
|
|
|
}
|