Documentation ¶
Index ¶
Constants ¶
View Source
const SectionSep string = "_"
The string separating the index and the name. If changed, make a due notice to users and either ensure backwards compatibility or have Doctor change the format automatically.
Variables ¶
This section is empty.
Functions ¶
func PathsFromSections ¶ added in v0.0.3
Takes a list of Section structs and returns a list of the corresponding paths.
Types ¶
type Section ¶ added in v0.0.3
Represents a section in the document.
func FindSectionMatches ¶ added in v0.1.3
Finds all sections that match the input. Returns an error if no sections match. 'minus' is subtracted from the index matching statement, used in the case of looping over multiple inputs to match against.
func SectionFromPath ¶ added in v0.0.3
Creates a new Section struct from the input path.
func (*Section) ChangeIndex ¶ added in v0.0.3
Changes the index of this section by renaming the file it represents.
Click to show internal directories.
Click to hide internal directories.