package
module
Version:
v0.0.0-...-6daa211
Opens a new window with list of versions in this module.
Published: Oct 14, 2016
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
= Diary
Jaime Silvela
2014-08-01
Module to provide abstraction to the storage and access of a diary as a file in JSON format.
Documentation
¶
Package diary defines the Record and Diary structures,
defines their file persistence scheme (JSON)
and hides these choices from calling modules.
Diary represents a diary
AddEntry adds a new record to the diary
LatestHappened gets the record with the latest event time
LatestWritten gets event written last
The Len, Swap and Less functions allow sorting
type Record struct {
EventTime time.Time `json:"eventTime"`
WrittenTime time.Time `json:"writtenTime"`
Tags []string `json:"tags"`
Text string `json:"text"`
}
Record represents an entry in the diary
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.