Documentation
¶
Index ¶
Constants ¶
View Source
const ( BeginMarker = "<!-- BEGIN nasc index -->" EndMarker = "<!-- END nasc index -->" )
Markers delimit the region of an output file that nasc owns. Everything outside them is written by hand and preserved across runs.
Variables ¶
This section is empty.
Functions ¶
func Merge ¶ added in v0.0.4
Merge splices a freshly generated index into an existing file. When the file already carries a nasc-managed region it is replaced in place, so hand-written prose above or below it survives. When the file has no region the block is appended after the existing content. An empty file yields just the block.
Types ¶
Click to show internal directories.
Click to hide internal directories.