db

package
v0.0.0-...-6b216b8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTodo

func CreateTodo(todo string) (int, error)

func DeleteTodo

func DeleteTodo(key int) error

func Initialize

func Initialize() error

This is exported initialize function. We will save the DB file on user "Home" directory, We will use 'os.UserHomeDir()' function

Types

type Todo

type Todo struct {
	Key   int
	Value string
}

func ListTodos

func ListTodos() ([]Todo, error)

Jump to

Keyboard shortcuts

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