diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-10-05 14:53:37 +0200 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-10-05 14:53:37 +0200 |
| commit | 1fc497fbdc79a43c62ac2e8eaf4827752dbeef8e (patch) | |
| tree | 67738e213ef97f249bdfa0f1bddda0839192cb77 /mock.go | |
| parent | bd9e7f7acfd855d4685aa4544169c0e29cdbf205 (diff) | |
Refactor codebase into modules
Diffstat (limited to 'mock.go')
| -rw-r--r-- | mock.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package flyscrape import ( @@ -7,7 +11,7 @@ import ( "strings" ) -func MockTransport(statusCode int, html string) func(*http.Request) (*http.Response, error) { +func MockTransport(statusCode int, html string) RoundTripFunc { return func(*http.Request) (*http.Response, error) { return MockResponse(statusCode, html) } |