Skip to content

docs: add per-function godoc to h element & attribute constructors#101

Merged
joaomdsg merged 1 commit into
mainfrom
docs/h-godoc
Jun 9, 2026
Merged

docs: add per-function godoc to h element & attribute constructors#101
joaomdsg merged 1 commit into
mainfrom
docs/h-godoc

Conversation

@joaomdsg

@joaomdsg joaomdsg commented Jun 9, 2026

Copy link
Copy Markdown
Member

Every exported function in package h now has a godoc comment.

The bulk element constructors and attribute shorthands relied on a single detached group comment, so go doc A / go doc Type reported them as undocumented — only the first func in each block attached the comment. Go can't group-document separate top-level funcs, so each gets a one-line doc.

  • elements.go// A renders the HTML <a> element. (void elements noted)
  • attributes.go// Href emits the href attribute. (group comment retained as Href's lead paragraph)

build + vet pass; no remaining undocumented exported decls.

The bulk element constructors and attribute shorthands relied on a
single detached group comment, so `go doc` reported them as
undocumented (only the first func in each block attached the comment).
Add a one-line doc comment to each so every exported function in
package h is documented.
@joaomdsg
joaomdsg merged commit 779566f into main Jun 9, 2026
4 checks passed
@joaomdsg
joaomdsg deleted the docs/h-godoc branch June 9, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant