model

package
v0.0.0-...-5ac601a Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawCategories

type RawCategories map[string][]RawRecipe

func (RawCategories) GetSortedKeys

func (rc RawCategories) GetSortedKeys() []string

type RawRecipe

type RawRecipe struct {
	Title         string   `json:"title" yaml:"title" toml:"title"`
	Categories    []string `json:"categories" yaml:"categories" toml:"categories"`
	Filename      string   `json:"-" yaml:"-" toml:"-"`
	IsMissingMeta bool     `json:"-" yaml:"-" toml:"-"`
}

func (RawRecipe) ToTemplateRecipe

func (rr RawRecipe) ToTemplateRecipe() TemplateRecipe

type TemplateCategory

type TemplateCategory struct {
	Name  string
	Items []TemplateRecipe
}

func NewTemplateCategory

func NewTemplateCategory(name string, items []RawRecipe) TemplateCategory

type TemplateRecipe

type TemplateRecipe struct {
	Title    string
	Filename string
}

Jump to

Keyboard shortcuts

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