GetDocsContent returns the appropriate documentation content based on the doc type
(docType string)
| 25 | |
| 26 | // GetDocsContent returns the appropriate documentation content based on the doc type |
| 27 | func GetDocsContent(docType string) string { |
| 28 | switch docType { |
| 29 | case DocsTypeBasic: |
| 30 | return docsBasic |
| 31 | case DocsTypeAggregates: |
| 32 | return docsAggregates |
| 33 | case DocsTypeStructural: |
| 34 | return docsStructural |
| 35 | case DocsTypeMetrics: |
| 36 | return docsMetrics |
| 37 | default: |
| 38 | return docsBasic // fallback to basic docs |
| 39 | } |
| 40 | } |