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:
authorAndrew Gerrand <adg@golang.org>2014-08-18 05:36:24 +0400
committerspf13 <steve.francia@gmail.com>2014-08-18 19:31:55 +0400
commit634d7b26382680620a930dad34efab0ac2bbae10 (patch)
tree740316fb5f618cf4c7e4398a9384696f9d7a42fa /parser/frontmatter.go
parent002a5b675691a06cc593e2728bb00731cafa964f (diff)
switch to new location of goyaml
Diffstat (limited to 'parser/frontmatter.go')
-rw-r--r--parser/frontmatter.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/parser/frontmatter.go b/parser/frontmatter.go
index d3c3f0347..68e4456d2 100644
--- a/parser/frontmatter.go
+++ b/parser/frontmatter.go
@@ -20,7 +20,7 @@ import (
"strings"
"github.com/BurntSushi/toml"
- "launchpad.net/goyaml"
+ "gopkg.in/yaml.v1"
)
type FrontmatterType struct {
@@ -38,7 +38,7 @@ func InterfaceToConfig(in interface{}, mark rune) ([]byte, error) {
switch mark {
case rune(YAML_LEAD[0]):
- by, err := goyaml.Marshal(in)
+ by, err := yaml.Marshal(in)
if err != nil {
return nil, err
}
@@ -83,7 +83,7 @@ func InterfaceToFrontMatter(in interface{}, mark rune) ([]byte, error) {
if err != nil {
return nil, err
}
- by, err := goyaml.Marshal(in)
+ by, err := yaml.Marshal(in)
if err != nil {
return nil, err
}
@@ -178,7 +178,7 @@ func removeTomlIdentifier(datum []byte) []byte {
func HandleYamlMetaData(datum []byte) (interface{}, error) {
m := map[string]interface{}{}
- if err := goyaml.Unmarshal(datum, &m); err != nil {
+ if err := yaml.Unmarshal(datum, &m); err != nil {
return m, err
}
return m, nil