package
1.2.8
Repository: https://github.com/nickwells/snippet.mod.git
Documentation: pkg.go.dev

# Functions

AltPartNames returns a slice of alternative names for the given part.
HideIntro returns a ListCfgOptFunc which will set up the ListCfg value to the given value.
List will read all of the snippet directories and show the available snippet files.
NewListCfg returns a new ListCfg holding the configuration for snippet listing.
SetConstraints returns a ListCfgOptFunc which will set on a ListCfg value the constraints on the snippets to be shown.
SetParts returns a ListCfgOptFunc which will set on a ListCfg value the parts of the snippets to be shown.
SetTags returns a ListCfgOptFunc which will set on a ListCfg value the tags of the snippets to be shown.
ValidParts returns a map which has an entry for all the valid parts of a snippet with a brief description of the part and how it is used.

# Constants

No description provided by the author
these correspond to semantic comments in the snippet.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
these are named parts of the snippet for listing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ListCfg holds the configuration for controlling the listing of snippets.
S records the details of the snippet.

# Type aliases

Cache holds a collection of snippets by name.
ListCfgOptFunc is a function which sets some part of a ListCfg structure.