Skip to content

lufia/godoc2man

Repository files navigation

godoc2man

Generate man pages from GoDoc comments

Usage

You can install godoc2man.

go install github.com/lufia/godoc2man@latest
godoc2man [options] [pkg ...]

Or you can execute it directly.

go run github.com/lufia/godoc2man@latest [options] [pkg ...]

Options

  • -lang: specify the language code that is used for GoDoc document
  • -flag: generate options section from sources with static analysis

Examples

godoc2man generates all manuals under cmd directory.

godoc2man ./cmd/...

About

Generate man pages from GoDoc comments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published