An open API service indexing awesome lists of open source software.

https://github.com/gotamer/matter

TOML Frontmatter or Endmatter unmarshaller.
https://github.com/gotamer/matter

decoder encoder endmatter frontmatter golang parser toml unmarshaller

Last synced: 6 months ago
JSON representation

TOML Frontmatter or Endmatter unmarshaller.

Awesome Lists containing this project

README

          

matter
======

TOML Frontmatter or Endmatter unMarshaller.

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

Either input will work fine:
```go

var inputFront = `

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

Matter first.

`

var inputEnd = `

Content first.

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

`

```