optdesc

package
v0.0.0-...-116fc4f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DocbookNodeVariableList   = "variablelist"
	DocbookNodeParagraph      = "para"
	DocbookNodeLiteralLayout  = "literallayout"
	DocbookNodeProgramListing = "programlisting"
	DocbookNodeBlockQuote     = "blockquote"
)

Variables

View Source
var DescriptionSectionParser = SectionParser{
	TargetSection: descriptionSectionName,
	// contains filtered or unexported fields
}
View Source
var OptionSectionParser = SectionParser{
	TargetSection: optionSectionName,
	// contains filtered or unexported fields
}

Functions

func ExtractOptDescription

func ExtractOptDescription(docbook *docbook.ManDocBookXml, writer io.Writer) (model schema.OptDescriptionModel)

This function does its best to extract an option description model from a docbook structure. Writer argument can be either nil (no logging) or an io.Writer to write failures and guesses. Returns nil if cannot find any opt description

Types

type SectionParser

type SectionParser struct {
	TargetSection string
	// contains filtered or unexported fields
}

func (*SectionParser) AggregateExtracts

func (parser *SectionParser) AggregateExtracts(sec *section.Section) extractor.RawOptExtracts

func (*SectionParser) ExtractModel

func (parser *SectionParser) ExtractModel(sec *section.Section, writer io.Writer) schema.OptDescriptionModel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL