Documentation
¶
Index ¶
- Variables
- func RenderDocumentation(r Renderer, objects map[string]jsonschema.Schema, ...) (string, error)
- type AsciiDocRenderer
- func (a *AsciiDocRenderer) Header(title string, level int) string
- func (a *AsciiDocRenderer) PropertyHeader(title string, level int) string
- func (a *AsciiDocRenderer) PropertyRow(parent, name string, schema jsonschema.Schema, maxDepth bool) string
- func (AsciiDocRenderer) TableFooter() string
- func (AsciiDocRenderer) TableHeader() string
- func (a *AsciiDocRenderer) TextParagraph(text string) string
- type MarkdownRenderer
- func (m *MarkdownRenderer) Header(title string, level int) string
- func (m *MarkdownRenderer) PropertyHeader(title string, level int) string
- func (m *MarkdownRenderer) PropertyRow(parent, name string, schema jsonschema.Schema, maxDepth bool) string
- func (MarkdownRenderer) TableFooter() string
- func (MarkdownRenderer) TableHeader() string
- func (MarkdownRenderer) TextParagraph(text string) string
- type Renderer
Constants ¶
This section is empty.
Variables ¶
View Source
var HeaderOffset int
Functions ¶
Types ¶
type AsciiDocRenderer ¶
type AsciiDocRenderer struct {
// contains filtered or unexported fields
}
func (*AsciiDocRenderer) PropertyHeader ¶
func (a *AsciiDocRenderer) PropertyHeader(title string, level int) string
func (*AsciiDocRenderer) PropertyRow ¶
func (a *AsciiDocRenderer) PropertyRow(parent, name string, schema jsonschema.Schema, maxDepth bool) string
func (AsciiDocRenderer) TableFooter ¶
func (AsciiDocRenderer) TableFooter() string
func (AsciiDocRenderer) TableHeader ¶
func (AsciiDocRenderer) TableHeader() string
func (*AsciiDocRenderer) TextParagraph ¶
func (a *AsciiDocRenderer) TextParagraph(text string) string
type MarkdownRenderer ¶
type MarkdownRenderer struct {
// contains filtered or unexported fields
}
func (*MarkdownRenderer) PropertyHeader ¶
func (m *MarkdownRenderer) PropertyHeader(title string, level int) string
func (*MarkdownRenderer) PropertyRow ¶
func (m *MarkdownRenderer) PropertyRow(parent, name string, schema jsonschema.Schema, maxDepth bool) string
func (MarkdownRenderer) TableFooter ¶
func (MarkdownRenderer) TableFooter() string
func (MarkdownRenderer) TableHeader ¶
func (MarkdownRenderer) TableHeader() string
func (MarkdownRenderer) TextParagraph ¶
func (MarkdownRenderer) TextParagraph(text string) string
Click to show internal directories.
Click to hide internal directories.