Skip to content

Latest commit

 

History

History
73 lines (36 loc) · 1.44 KB

README.md

File metadata and controls

73 lines (36 loc) · 1.44 KB

godoc2md

import "github.com/WillAbides/godoc2md"

Package godoc2md creates a markdown representation of a package's godoc.

This is forked from https://github.com/davecheney/godoc2md. The primary difference being that this version is a library that can be used by other packages.

commandline.go comment.go godoc2md.go template.go

func Godoc2md(args []string, out io.Writer, config *Config)

Godoc2md turns your godoc into markdown

type Config struct {
    AltPkgTemplate    string
    SrcLinkHashFormat string
    SrcLinkFormat     string
    Goroot            string
    TabWidth          int
    ShowTimestamps    bool
    ShowPlayground    bool
    ShowExamples      bool
    DeclLinks         bool
    Verbose           bool
}

Config contains config options for Godoc2md