From 79577b9024dea082c9cc8380997a224e3934df27 Mon Sep 17 00:00:00 2001 From: demo Date: Sun, 10 May 2026 21:50:48 -0400 Subject: docs: add doc comment to parse --- internal/links/find.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/links') 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 { -- cgit v1.2.3