package
Version:
v0.0.0-...-6f7621a
Opens a new window with list of versions in this module.
Published: May 14, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package metadata provides functionality for generating, parsing and operating
on Front Matter metadata within Markdown files.
Generate returns a string repesentation of the Front Matter metadata block to be included within
a new note file.
type Fields struct {
ID string `yaml:"id"`
Created string `yaml:"created"`
}
Fields are the different values within the Front Matter block at the top of any note.
Parse decodes the values within the Front Matter block at the top of the note
at the given filepath, and returns them as a metadata.Fields type.
Validate checks that the values within the Front Matter metadata block valid.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.