godoc2md

command module
v0.0.0-...-289bf01 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: BSD-3-Clause Imports: 18 Imported by: 0

README

godoc2md

This is a fork of github.com/davecheney/godoc2md, with two small differences:

  • The x/tools dependency is vendorized as it is unlikely to change.
  • The boolean flag --writefile has been added, which directs output to a README.md file in the targeted package directory.

Installation

go install github.com/rhallora-heidelberg/godoc2md

Usage

Call godoc2md --usage for details, but for example you could generate a README for github.com/gorilla/sessions in one of two ways:

godoc2md github.com/gorilla/sessions > examples/sessions/README.md

godoc2md --writefile github.com/gorilla/sessions

Documentation

Overview

godoc2md converts godoc formatted package documentation into Markdown format.

Usage

godoc2md $PACKAGE > $GOPATH/src/$PACKAGE/README.md

Jump to

Keyboard shortcuts

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