A TOML Front Matter parser, using BurntSushi's toml package. View the godoc documentation here. The TOML package used is pure Go, unlike the goyaml package used in the original fmatter package. TOML seems to be a good alternate format for front matter, too.
Read detects and parses the front matter data, and returns the
remaining contents. If no front matter is found, the entire
file contents are returned. frontmatter is passed to toml.Decode