blob: 14c2060670e154b7c99402bfa6fdf7fea2f8bd0c [file] [log] [blame]
package http
import (
"net/http"
)
type Client interface {
Get(addr string) (*http.Response, error)
}
type realClient struct{}
func (c realClient) Get(addr string) (*http.Response, error) {
return http.Get(addr)
}
func NewClient() Client {
return realClient{}
}