šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/sectioneight/md-to-godoc

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sectioneight/md-to-godoc

v0.0.0-20170519054633-79157ff08f1a
Source
Go
Version published
Created
Source

Markdown to Godoc converter

Godoc Reference Build Status Coverage Status

Sort of like godocdown, but in reverse.

md-to-godoc takes markdown as input, and generates godoc-formatted package documentation.

Status

Way, way alpha. Barebones. The minimalest.

Code example

Mostly here so we can see some code in godoc:

Sample list

  • This is a test
  • And another test
func main() {
  fmt.Println("Hello, world")
}

Usage

First, install the binary:

go get -u github.com/sectioneight/md-to-godoc

Then, run it on one or more packages. If you'd like to generate a doc.go file in the current package (that already has a README.md), simply run md-to-godoc with no flags:

md-to-godoc

Advanced usage

To generate doc.go for all subpackages, you can do something like the following:

find . -name README.md \
       -not -path "./vendor/*" | \
       xargs -I% md-to-godoc -input=%

Projects using md-to-godoc

Licence

Apache 2.0

FAQs

Package last updated on 19 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts