Documentation ¶
Overview ¶
Package doc2md 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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Funcs contains the functions used in the template. Of these only subdir_format might be // of interest to callers. Funcs = map[string]interface{}{ "comment_md": commentMdFunc, "base": path.Base, "md": mdFunc, "pre": preFunc, "kebab": kebabFunc, "bitscape": bitscapeFunc, "subdir_format": path.Base, } )
Functions ¶
Types ¶
type Config ¶
type Config struct { SrcLinkHashFormat string SrcLinkFormat string ShowTimestamps bool DeclLinks bool Verbose bool Import string SubPackage string // If this is a subpackage, this hold the relative import GitRef string // commit, tag, or branch of the repo. }
Config contains config options for doc2md
Click to show internal directories.
Click to hide internal directories.