Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDocLines ¶
ParseDocLines reads the rawdoc got from go/doc parsing, adds a leading "// " to each line, applies the replacements, and returns a slice of strings for each line. The result can then be conveniently used in a go template.
Example:
ParseDocLines( "myFunc does this.\nIt is cool.\n", map[string]string{"myFunc": "MyFunc", "cool": "nice"} ) // Output []string{ "// MyFunc does this.", "// It is nice.", }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.