matter

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 2 Imported by: 0

README

Go Reference

matter

TOML Frontmatter or Endmatter unMarshaller.

func Unmarshal(b []byte, v interface{}) (content []byte, err error)

Either input will work fine:

var inputFront = `

+++
name = "frontmatter"
tags = ['input', 'front']
+++

Matter first.
`

var inputEnd = `

Content first.

+++
name = "endmatter"
tags = ['input', 'end']
+++

`

Documentation

Overview

Package matter provides TOML frontmatter or endmatter unmarshalling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(b []byte, v interface{}) (content []byte, err error)

Unmarshal parses TOML frontmatter or endmatter and returns the content. When no front or endmatter delimiters are present the original content is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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