Skip to content

Commit

Permalink
fix: MarshalYAML only defined on Meta pointer receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
Omnikron13 committed May 20, 2024
1 parent 4ff4824 commit b33eff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion note/note.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b33eff3

Please sign in to comment.