(w io.Writer, doc inputDoc)
| 79 | } |
| 80 | |
| 81 | func genInputMarkdown(w io.Writer, doc inputDoc) { |
| 82 | fmt.Fprintf(w, "## Input *%s*\n", doc.name) |
| 83 | fmt.Fprintln(w) |
| 84 | fmt.Fprintln(w, "### Overview") |
| 85 | fmt.Fprintln(w, doc.help) |
| 86 | fmt.Fprintln(w) |
| 87 | fmt.Fprintln(w, "### Configuration") |
| 88 | if len(doc.keys) == 0 { |
| 89 | fmt.Fprintf(w, "No configuration available") |
| 90 | } else { |
| 91 | fmt.Fprintf(w, "\nKeys available in the `[input.config]` section:\n\n") |
| 92 | genConfigKeysMarkdown(w, doc.keys) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | func genFilterMarkdown(w io.Writer, doc filterDoc) { |
| 97 | fmt.Fprintf(w, "## Filter *%s*\n", doc.name) |
no test coverage detected