mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
parent
1b7ecfc2e1
commit
1e3e34002d
23 changed files with 729 additions and 356 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue