diff --git a/main.go b/main.go index 8b541dc..f0831e8 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,18 @@ func init() { readingsFilename = filepath.Join(ketotrackDir, "readings.json") } +// Record holds a pointer to a Reading or Note. +type Record struct { + Reading *Reading `json:"reading,omitempty"` + Note *Note `json:"note,omitempty"` +} + +// Note holds a text note along with the time the note was taken. +type Note struct { + Time time.Time `json:"time"` + Text string `json:"text"` +} + // Reading holds the glucose and ketone level measurements along with the time the measurements were taken. type Reading struct { Time time.Time `json:"time"`