Documentation
¶
Index ¶
Constants ¶
View Source
const ( FieldDefault = "# Default" FieldExample = "# Example" TokenAdvanced = "**ADVANCED**" )
Variables ¶
This section is empty.
Functions ¶
func DefaultsOnly ¶ added in v0.9.5
DefaultsOnly reads only the default values from a docs TOML file and decodes in to cfg. Fields without defaults will set to zero values. Arrays of tables are ignored.
func Generate ¶
Generate returns MarkDown documentation generated from the TOML string. - Each field but include a trailing comment of either FieldDefault or FieldExample. - If a description begins with TokenAdvanced, then a warning will be included. - The markdown wil begin with the header, followed by the example - Extended descriptions can be applied to top level tables
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.