diff options
| author | demo <demo@antix1> | 2026-05-10 21:50:48 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-10 21:50:48 -0400 |
| commit | 79577b9024dea082c9cc8380997a224e3934df27 (patch) | |
| tree | 980d1c1ca817f669ba96ebabbb79421f35adb703 /internal/links | |
| parent | da6e056a3e46177bf0c822355aff284674710962 (diff) | |
docs: add doc comment to parse
Diffstat (limited to 'internal/links')
| -rw-r--r-- | internal/links/find.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/links/find.go b/internal/links/find.go index 4422826..44ba128 100644 --- a/internal/links/find.go +++ b/internal/links/find.go @@ -7,6 +7,11 @@ import ( "golang.org/x/net/html/atom" ) +// parse finds the links inside htmlInput and returns them as a slice +// of strings, along with an error. +// +// The only possible error should be the one returned from calling +// [html.Parse]. func parse(htmlInput io.Reader) ([]string, error) { doc, err := html.Parse(htmlInput) if err != nil { |
