Documentation ¶ Index ¶ func New() *manager type Manager type Note Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New() *manager New creates a new instance of the notes manager Types ¶ type Manager ¶ type Manager interface { // AddNoteToOrder adds a note to an order AddNoteToOrder(orderID, note string) error // GetNotesFromOrder returns all notes from an order GetNotesFromOrder(orderID string) ([]Note, error) } type Note ¶ type Note struct { Text string Date time.Time } Source Files ¶ View all Source files singleton.go Click to show internal directories. Click to hide internal directories.