diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-09-23 17:41:57 +0200 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-09-23 17:41:57 +0200 |
| commit | 08df9258a532b653c243e077e82491dbe62ad854 (patch) | |
| tree | e72b04dba61e65d3bfb9cdb0ad3a87f5caa95eb3 /utils.go | |
| parent | c6950bcd5cd8fe9e7cc63fde7216a5a9b93b8aa0 (diff) | |
refactor scraper into modules
Diffstat (limited to 'utils.go')
| -rw-r--r-- | utils.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -26,3 +26,7 @@ func Print(v any, prefix string) string { enc.Encode(v) return prefix + strings.TrimSuffix(buf.String(), "\n") } + +func ParseOptions(opts Options, v any) { + json.Unmarshal(opts, v) +} |