summaryrefslogtreecommitdiff
path: root/js.go
diff options
context:
space:
mode:
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