Help us shape the future of Go! Take the 2026 Go Developer Survey

godoc2man

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2025 License: BSD-3-Clause Imports: 21 Imported by: 0

README

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
  • -dir: specify the output directory

Examples

godoc2man generates all manuals under cmd directory.

godoc2man ./cmd/...

Documentation

Overview

godoc2man generates man pages.

SYNPOSIS

godoc2man [pkg ...]

Notes

Bugs

Directories

Path Synopsis
internal
roff
Package roff provides utilities for roff text.
Package roff provides utilities for roff text.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL