storage

package
v0.0.0-...-0951acc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL