models

package
v0.0.0-...-2e30951 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id int64) (int64, error)

func Insert

func Insert(todo Todo) (id int64, err error)

func Update

func Update(id int64, todo Todo) (int64, error)

Types

type Todo

type Todo struct {
	ID          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"descritpion"`
	Done        bool   `json:"done"`
}

func Get

func Get(id int64) (todo Todo, err error)

func GetAll

func GetAll() (todos []Todo, err error)

Jump to

Keyboard shortcuts

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