Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidRecipe = errors.New("invalid recipe") ErrMissingTitle = fmt.Errorf("%w: missing title", ErrInvalidRecipe) )
Functions ¶
This section is empty.
Types ¶
type RecipeFrontmatter ¶
type RecipeMetadata ¶
type RecipeMetadata struct { *RecipeFrontmatter Title string }
type RecipeParser ¶
type RecipeParser struct {
// contains filtered or unexported fields
}
func NewParser ¶
func NewParser() *RecipeParser
func (*RecipeParser) ParseRecipe ¶
func (p *RecipeParser) ParseRecipe(content []byte) (*RecipeMetadata, error)
Click to show internal directories.
Click to hide internal directories.