Models

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateATodo

func CreateATodo(todo *Todo) (err error)

func DeleteATodo

func DeleteATodo(todo *Todo, id string) (err error)

func GetATodo

func GetATodo(todo *Todo, id string) (err error)

func GetAllTodos

func GetAllTodos(todo *[]Todo) (err error)

func UpdateATodo

func UpdateATodo(todo *Todo, id string) (err error)

Types

type Todo

type Todo struct {
	ID          uint   `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

func (*Todo) TableName

func (b *Todo) TableName() string

Jump to

Keyboard shortcuts

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