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 --- js.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js.go') diff --git a/js.go b/js.go index 5343754..7e1f7c0 100644 --- a/js.go +++ b/js.go @@ -18,6 +18,13 @@ import ( type Config []byte +type ScrapeParams struct { + HTML string + URL string +} + +type ScrapeFunc func(ScrapeParams) (any, error) + type TransformError struct { Line int Column int -- cgit v1.2.3