Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Doer ¶
实现多个工厂函数,返回不同的接口实现
func NewHttpClient ¶
func NewHttpClient() Doer
NewHttpClient gives us a regular HTTP client from the `net/http` package
func NewMockHTTPClient ¶
func NewMockHTTPClient() Doer
NewMockHTTPClient gives us a mock HTTP client, which returns an empty response for any request sent to it
Click to show internal directories.
Click to hide internal directories.