I am Joshua Poehls. Say hello Archives (not so) silent thoughts

Reading Day One journals in Go

Here’s a little gift for my fellow Day One aficionados who also happen to use Go.

A Go package for reading Day One journal files!

Source   ⭑ Documentation

It’s as easy as:

import "github.com/jpoehls/go-dayone"

j := dayone.NewJournal("/Users/{me}/Dropbox/Apps/Day One/Journal.dayone")

err := j.Read(func(e *Entry, err error) error {
	if err != nil {
		return err
	}

	// Do something with the entry,
	// or return dayone.ErrStopRead to break.
})

if err != nil {
	panic(err)
}

I’d like to add support for creating and editing entries in the future. Contributions welcome, just hit me up!

⦿