summaryrefslogtreecommitdiff
path: root/js.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2023-10-05 14:53:37 +0200
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2023-10-05 14:53:37 +0200
commit1fc497fbdc79a43c62ac2e8eaf4827752dbeef8e (patch)
tree67738e213ef97f249bdfa0f1bddda0839192cb77 /js.go
parentbd9e7f7acfd855d4685aa4544169c0e29cdbf205 (diff)
Refactor codebase into modules
Diffstat (limited to 'js.go')
-rw-r--r--js.go7
1 files changed, 7 insertions, 0 deletions
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