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 /js.go | |
| parent | bd9e7f7acfd855d4685aa4544169c0e29cdbf205 (diff) | |
Refactor codebase into modules
Diffstat (limited to 'js.go')
| -rw-r--r-- | js.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |