models

package
v0.0.0-...-70a6041 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayTodos

func DisplayTodos(db *bolt.DB, done bool) error

DisplayTodos from db

func Done

func Done(db *bolt.DB, done int) error

Done : function to update a Todo as done

Types

type Todo

type Todo struct {
	ID   int
	Name string
	Done bool
}

Todo struct for storing todo data

func (*Todo) Save

func (todo *Todo) Save(db *bolt.DB) error

Save : function to save todoitem to DB

Jump to

Keyboard shortcuts

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