Documentation ¶
Index ¶
- Constants
- func FormatSanitize(kind string) string
- func FormatToLeadRune(kind string) rune
- func HandleHeadMetaData(datum []byte) (interface{}, error)
- func HandleJsonMetaData(datum []byte) (interface{}, error)
- func HandleTomlMetaData(datum []byte) (interface{}, error)
- func HandleYamlMetaData(datum []byte) (interface{}, error)
- func InterfaceToConfig(in interface{}, mark rune) ([]byte, error)
- func InterfaceToFrontMatter(in interface{}, mark rune) ([]byte, error)
- type Content
- type FrontMatter
- type FrontmatterType
- type Page
Constants ¶
View Source
const ( HTML_LEAD = "<" YAML_LEAD = "-" YAML_DELIM_UNIX = "---\n" YAML_DELIM_DOS = "---\r\n" YAML_DELIM = "---" TOML_LEAD = "#" TOML_DELIM_UNIX = "###\n" TOML_DELIM_DOS = "###\r\n" TOML_DELIM = "###" HEAD_LEAD = "+" HEAD_DELIM_UNIX = "+++\n" HEAD_DELIM_DOS = "+++\r\n" HEAD_DELIM = "+++" JSON_LEAD = "{" )
Variables ¶
This section is empty.
Functions ¶
func FormatSanitize ¶
func FormatToLeadRune ¶
func HandleHeadMetaData ¶
func HandleJsonMetaData ¶
func HandleTomlMetaData ¶
func HandleYamlMetaData ¶
func InterfaceToConfig ¶
func InterfaceToFrontMatter ¶
Types ¶
type FrontMatter ¶
type FrontMatter []byte
type FrontmatterType ¶
type FrontmatterType struct { Parse func([]byte) (interface{}, error) // contains filtered or unexported fields }
func DetectFrontMatter ¶
func DetectFrontMatter(mark rune) (f *FrontmatterType)
Click to show internal directories.
Click to hide internal directories.