todo

package
v0.0.0-...-69a04ed Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(message string) string

Add will add a new todo

func Complete

func Complete(id string) error

Complete will set the complete boolean to true, marking a todo as completed

func Delete

func Delete(id string) error

Types

type Todo

type Todo struct {
	ID       string `json:"id"`
	Message  string `json:"message"`
	Complete bool   `json:"complete"`
}

func Get

func Get() []Todo

Jump to

Keyboard shortcuts

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