"strings"
"github.com/BurntSushi/toml"
- "launchpad.net/goyaml"
+ "gopkg.in/yaml.v1"
)
type FrontmatterType struct {
switch mark {
case rune(YAML_LEAD[0]):
- by, err := goyaml.Marshal(in)
+ by, err := yaml.Marshal(in)
if err != nil {
return nil, err
}
if err != nil {
return nil, err
}
- by, err := goyaml.Marshal(in)
+ by, err := yaml.Marshal(in)
if err != nil {
return nil, err
}
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