blob: 14c2060670e154b7c99402bfa6fdf7fea2f8bd0c [file] [log] [blame]
gioe72b54f2024-04-22 10:44:41 +04001package http
2
3import (
4 "net/http"
5)
6
7type Client interface {
8 Get(addr string) (*http.Response, error)
9}
10
11type realClient struct{}
12
13func (c realClient) Get(addr string) (*http.Response, error) {
14 return http.Get(addr)
15}
16
17func NewClient() Client {
18 return realClient{}
19}