8000 GitHub - chetanr25/go_todo: A simple command-line todo list application built with Go. Manage your todos efficiently using simple commands like add, list, and delete. Data is persisted in a CSV file for easy storage and retrieval.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A simple command-line todo list application built with Go. Manage your todos efficiently using simple commands like add, list, and delete. Data is persisted in a CSV file for easy storage and retrieval.

Notifications You must be signed in to change notification settings

chetanr25/go_todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Todo CLI

This is a simple 6CA5 command-line interface (CLI) application for managing a todo list, written in Go. It supports adding, listing, and deleting todo items, and stores the data in a CSV file.

Code Structure

cmd/

  • add.go: Implements the add command.
  • delete.go: Implements the delete command.
  • list.go: Implements the list command.

data/

  • data.csv: Stores the todo items.

models/

  • todo.go: Defines the TodoItem struct.

utils/

  • csv_utils.go: Contains utility functions for reading from and writing to the CSV file.

main.go: The entry point of the application.

Installation

  1. Clone the repository:

    git clone https://github.com/chetanr25/go_todo.git
    cd go_todo
  2. Install the dependencies:

    go mod tidy
  3. Build the application:

    go build -o todo

Usage

The CLI supports the following commands:

Add a Todo Item

Add a new todo item to the list.

./todo add "Your todo item title"

List Todo Items

List all the todo items.

./todo list

Delete a Todo Item

Delete a todo item by its ID.

./todo delete <id>

About

A simple command-line todo list application built with Go. Manage your todos efficiently using simple commands like add, list, and delete. Data is persisted in a CSV file for easy storage and retrieval.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0