Versions in this module Expand all Collapse all v0 v0.1.0 Jan 4, 2018 Changes in this version + func Equal(u1, u2 Unit) bool + func NotEqual(u1, u2 Unit) bool + func OptionClockMock(t ...time.Time) func(u interface{}) + func OptionClockMockPartial(t ...time.Time) func(u interface{}) + func OptionClockReal() func(u interface{}) + func OptionIDGeneratorMock(s string) func(u interface{}) + func OptionIDGeneratorUUID() func(u interface{}) + func OptionListItem(item Unit) func(u interface{}) + func OptionListMarshalItems(m bool) func(u interface{}) + func OptionTextCodeData(t string) func(u interface{}) + func OptionTextCodeLanguage(l string) func(u interface{}) + func OptionTextMarkdownData(t string) func(u interface{}) + func OptionTextPlainData(t string) func(u interface{}) + func OptionTitle(t string) func(u interface{}) + func OptionTodoItem(data string, done bool) func(u interface{}) + type List interface + AddItem func(item Unit) + GetItem func(index int) Unit + Items func() []Unit + MarshalItems func() bool + RemoveItem func(index int) + SetItem func(index int, item Unit) + SetItems func(items []Unit) + SetMarshalItems func(m bool) + func NewList(options ...func(u interface{})) List + type TextCode interface + Language func() string + SetLanguage func(language string) + func NewTextCode(options ...func(u interface{})) TextCode + type TextMarkdown interface + func NewTextMarkdown(options ...func(u interface{})) TextMarkdown + type TextPlain interface + Data func() string + SetData func(data string) + func NewTextPlain(options ...func(u interface{})) TextPlain + type Todo interface + AddItem func(item TodoItem) + GetItem func(index int) TodoItem + Items func() []TodoItem + NewItem func() TodoItem + RemoveItem func(index int) + SetItem func(index int, item TodoItem) + SetItems func(items []TodoItem) + func NewTodo(options ...func(u interface{})) Todo + type TodoItem interface + Data func() string + Done func() bool + SetData func(data string) + SetDone func(done bool) + type Type int + const TypeList + const TypeTextCode + const TypeTextMarkdown + const TypeTextPlain + const TypeTodo + const TypeUnit + func TypeFromString(s string) (Type, error) + func (t *Type) NewObject(options ...func(u interface{})) Unit + func (t *Type) UnmarshalJSON(data []byte) error + func (t Type) MarshalJSON() ([]byte, error) + func (t Type) String() string + type Unit interface + Created func() time.Time + ID func() string + SetTitle func(title string) + Title func() string + Type func() Type + Updated func() time.Time + func NewUnit(options ...func(u interface{})) Unit