From 1fc497fbdc79a43c62ac2e8eaf4827752dbeef8e Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Thu, 5 Oct 2023 14:53:37 +0200 Subject: Refactor codebase into modules --- mock.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mock.go') diff --git a/mock.go b/mock.go index 44b8837..147ca82 100644 --- a/mock.go +++ b/mock.go @@ -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) } -- cgit v1.2.3