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.
- Host: GitHub
- URL: https://github.com/gotamer/matter
- Owner: gotamer
- License: mit
- Created: 2022-03-06T12:03:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T20:56:45.000Z (over 4 years ago)
- Last Synced: 2024-06-20T10:18:20.589Z (about 2 years ago)
- Topics: decoder, encoder, endmatter, frontmatter, golang, parser, toml, unmarshaller
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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']
+++
`
```