models

package
v0.0.0-...-b87fc4c Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTodo

func DeleteTodo(id int) (sql.Result, error)

func GetDB

func GetDB() *goku.MysqlDB

func GetTodoLists

func GetTodoLists() (*[]Todo, error)

func SaveTodo

func SaveTodo(m map[string]interface{}) (sql.Result, error)

func UpdateTodo

func UpdateTodo(id int, m map[string]interface{}) (sql.Result, error)

Types

type Todo

type Todo struct {
	Id       int
	Title    string
	Finished bool
	PostDate time.Time
}

func GetTodo

func GetTodo(id int) (Todo, error)

Jump to

Keyboard shortcuts

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