Don't prepend filename in default GenMarkdownTree

This commit is contained in:
Jeff Lowdermilk 2015-05-20 17:21:00 -07:00
parent d910a04b50
commit 7b4b4aaac9
1 changed files with 3 additions and 2 deletions

View File

@ -104,8 +104,9 @@ func GenMarkdownCustom(cmd *Command, out *bytes.Buffer, linkHandler func(string)
}
func GenMarkdownTree(cmd *Command, dir string) {
noOp := func(s string) string { return s }
GenMarkdownTreeCustom(cmd, dir, noOp, noOp)
identity := func(s string) string { return s }
emptyStr := func(s string) string { return "" }
GenMarkdownTreeCustom(cmd, dir, emptyStr, identity)
}
func GenMarkdownTreeCustom(cmd *Command, dir string, filePrepender func(string) string, linkHandler func(string) string) {