notes

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(db *sql.DB, note Note) error

func Delete

func Delete(db *sql.DB, id string) error

func InitializeTable

func InitializeTable(db *sql.DB) error

func Update

func Update(db *sql.DB, id string, note Note) error

Types

type Note

type Note struct {
	ID      int    `json:"id"`
	Title   string `json:"title"`
	Content string `json:"content"`
}

func Get

func Get(db *sql.DB, id string) (Note, error)

func List

func List(db *sql.DB) ([]Note, error)

Jump to

Keyboard shortcuts

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