diff --git a/note/note.go b/note/note.go index db94480..9b1ff83 100644 --- a/note/note.go +++ b/note/note.go @@ -49,7 +49,7 @@ func New(body string) Note { func (n *Note) genFile() []byte { var b bytes.Buffer b.WriteString("---\n") - yml, err := yaml.Marshal(n.Meta) + yml, err := yaml.Marshal(&n.Meta) if err != nil { // TODO: rework this to more idiomatic Go error handling panic(err)