fmatter

package
v0.0.0-...-536613a Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(data []byte, frontmatter interface{}) []byte

Read detects and parses data, and returns the front matter and the remaining contents. If no front matter is found, the entire file contents are returned.

func ReadRaw

func ReadRaw(data []byte) (front, remaining []byte)

ReadRaw detects and parses data, and returns the front matter and the remaining contents. If no front matter is found, the entire file contents are returned.

func Write

func Write(frontmatter interface{}, content []byte) ([]byte, error)

Write combine front matter and content, and returns the new bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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