dumbdown

command module
v0.0.0-...-199229b Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

README

Command dumbdown

The dumbdown command provides a simple conversion from go doc to markdown.

During conversion, some not-needed text is omitted; while heading text is prepended with ## to become a markdown header.

The conversion is, by design, not particularly smart (hence the name).

Usage

Run from the command line:

go doc | dumbdown > README.md

To automatically build README.md, add "go:generate" comments to source:

//go:generate sh -c "go doc | dumbdown > README.md"

then at build-time run:

go generate ./...

Documentation

Overview

Command dumbdown

The `dumbdown` command provides a simple conversion from `go doc` to markdown.

During conversion, some not-needed text is omitted; while heading text is prepended with `## ` to become a markdown header.

The conversion is, by design, not particularly smart (hence the name).

Usage

Run from the command line:

go doc | dumbdown > README.md

To automatically build README.md, add "go:generate" comments to source:

//go:generate sh -c "go doc | dumbdown > README.md"

then at build-time run:

go generate ./...

Source Files

  • dumbdown.go

Jump to

Keyboard shortcuts

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