Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'parser/frontmatter.go')
-rw-r--r--parser/frontmatter.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser/frontmatter.go b/parser/frontmatter.go
index 3716dc112..284d3f955 100644
--- a/parser/frontmatter.go
+++ b/parser/frontmatter.go
@@ -203,6 +203,7 @@ func removeTOMLIdentifier(datum []byte) []byte {
// HandleYAMLMetaData unmarshals YAML-encoded datum and returns a Go interface
// representing the encoded data structure.
+// TODO(bep) 2errors remove these handlers (and hopefully package)
func HandleYAMLMetaData(datum []byte) (map[string]interface{}, error) {
m := map[string]interface{}{}
err := yaml.Unmarshal(datum, &m)