Documentation ¶ Index ¶ type Note type Storage func New(connStr string) (*Storage, error) func (s *Storage) GetNotes() ([]Note, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Note ¶ type Note struct { ID int64 `db:"id, primarykey, autoincrement" json:"id"` Title string `db:"title,size:64" json:"title"` Body string `db:"body,size:2048" json:"body"` } type Storage ¶ type Storage struct { // contains filtered or unexported fields } func New ¶ func New(connStr string) (*Storage, error) func (*Storage) GetNotes ¶ func (s *Storage) GetNotes() ([]Note, error) Source Files ¶ View all Source files storage.go Click to show internal directories. Click to hide internal directories.