Skip to content

docs(go): add godoc comments to all exported types and functions - #5

Merged
Mukbeast4 merged 1 commit into
mainfrom
feature/godoc-comments
Apr 24, 2026
Merged

docs(go): add godoc comments to all exported types and functions#5
Mukbeast4 merged 1 commit into
mainfrom
feature/godoc-comments

Conversation

@Mukbeast4

Copy link
Copy Markdown
Owner

What

Adds godoc comments to every exported type, function, method, variable and constant across the root package, plus a package-level doc on goods.go.

Why

pkg.go.dev/github.com/mukbeast4/go-ods was effectively empty — no exported symbol had a doc comment. This PR unlocks discoverability via go doc and the Go documentation website, which is a strong signal of library maturity and a prerequisite before expanding the surface further.

Notes

  • No behavior change; every comment is informational.
  • Follows stdlib conventions: short phrase, starts with the symbol name.
  • Covers 112+ exported methods on *File plus sentinel errors, style types, cell helpers, iterators, range builder, coord utilities and formula helpers.
  • go test -race, go vet, gofmt -l all clean.

Test plan

  • go test -count=1 -race ./... passes
  • gofmt -l . silent
  • go vet ./... silent
  • go doc github.com/mukbeast4/go-ods NewFile renders useful text
  • After merge: confirm pkg.go.dev refreshes with the new doc

### What
Adds godoc comments to every exported type, function, method, variable and
constant across the root package, plus a package-level doc comment on
goods.go.

### Why
pkg.go.dev was effectively empty: no exported symbol had a doc comment. This
PR lets users discover the API through `go doc` and the Go documentation
website, which is a strong signal of library maturity and a prerequisite
before growing the surface further.

### Notes
- No behavior change; every comment is informational.
- Follows stdlib conventions: short phrase, starts with the symbol name.
- Covers 112+ exported methods on *File plus sentinel errors, style types,
  cell helpers, iterators, range builder and utility funcs.
@Mukbeast4
Mukbeast4 merged commit 3889e45 into main Apr 24, 2026
2 checks passed
@Mukbeast4
Mukbeast4 deleted the feature/godoc-comments branch June 11, 2026 09:04
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