db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func DeleteTodo

func DeleteTodo(id int64) error

func Load

func Load()

Types

type Todo

type Todo struct {
	Id   int64  `json:"id"`
	Text string `json:"text"`
	Done bool   `json:"done"`
}

func FindTodoById

func FindTodoById(id int64) (*Todo, error)

func FindTodosByDone

func FindTodosByDone(done bool) ([]*Todo, error)

func FindTodosByText

func FindTodosByText(text string) ([]*Todo, error)

func NewTodo

func NewTodo(text string) *Todo

func (*Todo) Save

func (t *Todo) Save() error

Jump to

Keyboard shortcuts

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