data

package
v0.0.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FPrettyPrintFile

func FPrettyPrintFile(w io.Writer, todoList []TodoEntity, editText EditTextFunc) error

func GetFolder

func GetFolder() (string, error)

func PrettyPrintFile

func PrettyPrintFile(fileFullPath string, editText EditTextFunc) error

func SPrettyPrintFile

func SPrettyPrintFile(fileFullPath string, editText EditTextFunc) (string, error)

func WriteTodoToFile

func WriteTodoToFile(fileFullPath string, todoList []TodoEntity) (err error)

Types

type EditTextFunc

type EditTextFunc func(todo string, index int) (string, error)

type TodoEntity

type TodoEntity struct {
	Text string
}

func GetTodoFromFile

func GetTodoFromFile(fileFullPath string) (items []TodoEntity, err error)

This does not create the file if it doesn't exist

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳