snippet

package
v0.0.0-...-222bce3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Groups

type Groups map[string]*group

Groups represents a mapping if group names to snippet group data structure

func LoadFromDir

func LoadFromDir(rootDir string) (Groups, error)

LoadFromDir traverses given root dir, parses snippets and returns populated snippet group collection

func (Groups) PrintNames

func (g Groups) PrintNames(w io.Writer) error

PrintNames outputs group names along with their the corresponding file names to a given writer

Jump to

Keyboard shortcuts

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